sqb load
Runs source loader functions and writes data into their target tables using the configured write strategy.Usage
Flags
| Flag | Description |
|---|---|
--select, -s | Select specific sources or loaders by name |
--exclude | Exclude specific sources or loaders |
--reload | Pass is_reload=True to loader functions |
--concurrency | Number of worker connections (default: from settings or 1) |
--start-cursor-ts | Override start cursor for timestamp-based loaders (ISO format) |
--end-cursor-ts | Override end cursor for timestamp-based loaders (ISO format) |
--start-cursor-int | Override start cursor for integer-based loaders |
--end-cursor-int | Override end cursor for integer-based loaders |
--json | Output results as JSON |
--json-output | Write JSON results to a file path |
--var | Set project variables (--var key=value) |
Examples
Execution order
Loaders are executed in DAG topological order based ondepends_on declarations. Independent loaders run concurrently when --concurrency is greater than 1.
Intermediate loaders (those referenced only via depends_on without a direct source binding) run first, followed by the source-bound loaders that depend on them.
Output
Auto-load during builds
sqb build automatically loads managed sources before building dependent models. This is controlled by the auto_load_sources setting (default: true) and the --load / --no-load / --reload flags:

