seeds/ that SQLBuild loads as tables in the warehouse. They’re useful for small, static reference data like lookup tables, category mappings, or configuration values.
Defining a seed
Place a CSV file in yourseeds/ directory:
.yml file under seeds/. You can use any filename and organize declarations however you like - one file per seed, or group related seeds together:
seeds/ directory (including subdirectories). The seed name in the YAML must match the CSV filename (without the .csv extension).
Referencing seeds
Seeds are referenced in models with__seed():
__seed() is distinct from __ref(). Using __ref() with a seed name raises a compile error with a message pointing you to __seed().
Loading seeds
Seeds are loaded automatically duringsqb build. You can also load them standalone:
Target overrides
Seeds inherit the project’s default database and schema. You can override these per seed:CSV settings
For non-standard CSV formats, configure parsing behavior withcsv_settings:
Available CSV settings
| Setting | Type | Description |
|---|---|---|
delimiter | string | Field delimiter (default: ,) |
quotechar | string | Character used to quote fields (default: ") |
doublequote | boolean | Whether the quotechar is doubled to escape itself |
escapechar | string | Character used to escape the delimiter or quotechar |
skipinitialspace | boolean | Skip whitespace after the delimiter |
lineterminator | string | Line terminator character |
encoding | string | File encoding (default: utf-8) |
na_values | list or mapping | Values to treat as null - a global list or per-column mapping |
keep_default_na | boolean | Whether to use the default set of NA values in addition to na_values |
Per-column NA values
na_values can be a flat list (applied to all columns) or a mapping from column names to their NA values:

