Quickstart
-
Create a starter project.
Terminal window selectjoin init my_projectcd my_projectThis creates one declared source, one reusable component, and one staging model that uses it. No database or data is needed.
-
Validate it.
Terminal window selectjoin checkOK: 2 sources/models validated (duckdb). -
Read the SQL it compiles to.
Terminal window selectjoin compile stg_orders -
Add a model of your own.
Terminal window selectjoin new order_totals --layer marts --from stg_orders --grain order_idThis creates
models/marts/mart_order_totals.pywith a starting query. Edit it, then runselectjoin checkagain. -
Open the lineage explorer.
Terminal window selectjoin serveVisit
http://127.0.0.1:8765to search models, view columns and SQL, and follow lineage.
What it looks like
Section titled “What it looks like”In a terminal the output is styled; piped or captured, it is plain text. This is the layered example:
Try the larger example
Section titled “Try the larger example”--template layers creates a project that unions current and archived orders, enriches them, joins customers, derives a loyalty feature, and aggregates revenue:
selectjoin init /tmp/layers-demo --template layerscd /tmp/layers-demoselectjoin listselectjoin compile mart_customer_revenueselectjoin deps mart_customer_revenue --upstreamOther templates: shop (a small five-unit example) and incremental (a bounded-event merge playground).
Next steps
Section titled “Next steps”- See how SelectJoin works and how a project is structured.
- Follow a how-to: add a model, change one safely, or ship the SQL.
- Learn the authoring API in Models and sources.
- Share logic with Components and presets.
- See every command in the CLI reference.