Install
rivers alongside SQLBuild.
Try it
rivers_pipeline/definitions.py that includes asset definitions and a configured job. Open the Rivers UI to inspect assets and trigger materializations.
How it works
sqb compile --daggenerates a staticsqlbuild_dag.jsonartifact with your project’s full graph (nodes, edges)@sqlbuild_assets()reads the artifact and creates one RiversAssetDefper source, loader, seed, model, function, task, and asset, with dependency edges preserved- The decorated function runs
sqb buildas a subprocess and yieldsMaterializationevents for each output
Quickstart
SqlBuildProject
SqlBuildProject manages paths and DAG artifact generation:
Methods
Use
prepare_if_dev() so the DAG artifact is auto-generated during local development but not during production deployments where it should already exist.
sqlbuild_assets
The@sqlbuild_assets() decorator creates a Rivers multi-asset definition from a SQLBuild DAG artifact:
Pass either
project or dag, not both.

