Skip to content

Quickstart

  1. Create a starter project.

    Terminal window
    selectjoin init my_project
    cd my_project

    This creates one declared source, one reusable component, and one staging model that uses it. No database or data is needed.

  2. Validate it.

    Terminal window
    selectjoin check
    OK: 2 sources/models validated (duckdb).
  3. Read the SQL it compiles to.

    Terminal window
    selectjoin compile stg_orders
  4. Add a model of your own.

    Terminal window
    selectjoin new order_totals --layer marts --from stg_orders --grain order_id

    This creates models/marts/mart_order_totals.py with a starting query. Edit it, then run selectjoin check again.

  5. Open the lineage explorer.

    Terminal window
    selectjoin serve

    Visit http://127.0.0.1:8765 to search models, view columns and SQL, and follow lineage.

In a terminal the output is styled; piped or captured, it is plain text. This is the layered example:

terminal

--template layers creates a project that unions current and archived orders, enriches them, joins customers, derives a loyalty feature, and aggregates revenue:

Terminal window
selectjoin init /tmp/layers-demo --template layers
cd /tmp/layers-demo
selectjoin list
selectjoin compile mart_customer_revenue
selectjoin deps mart_customer_revenue --upstream

Other templates: shop (a small five-unit example) and incremental (a bounded-event merge playground).