Dataset & View YAML Specification
Spice Datasets and Views are defined in YAML. To create a Dataset or View, add a dataset YAML to the .spice/datasets
path of the connected GitHub repository.
YAML Schema Reference
name
The name of the dataset. Only alpha characters and underscores are supported with no spaces.
description
[optional]
An optional description for the dataset.
type
The dataset type. Supported values are:
Value | Description |
---|---|
| New data is appended to this dataset. Examples are logs or transactions. |
| New data overwrites rows in this dataset. Examples are NFTs. |
access
[optional]
Shared access to this dataset. Use *
to give public access to all Spice users and organizations, or specify users/orgs.
Key | Description |
---|---|
| A list of orgs/users or a single item array with * |
migrations
An ordered list of SQL migrations to execute to create or update this dataset.
Specifies the Spice Firecache properties of this dataset.
Example definition
Last updated