Concepts

On this page

How OndatraSQL works.

Models

A model is a SQL file that produces one table. The file path is the table name, directives control behavior, and lib functions handle API data.

Model Kinds

Why OndatraSQL has six model kinds and when to choose each one.

Change Detection

How OndatraSQL uses DuckLake snapshots to process only changed data. AST-level query rewriting, join handling, and skip detection.

Schema Evolution

How OndatraSQL handles schema changes automatically when your model SQL changes.

Incremental Models

Why OndatraSQL uses cursor-based incrementality, how it interacts with CDC, and what the tradeoffs are.

Dependency Graph

How OndatraSQL builds and executes the dependency graph automatically from your SQL.

Validation

How OndatraSQL validates data at three stages and why each stage exists.

Lib Functions

Why transport logic lives in lib/ as Starlark functions, separate from SQL models.