Artifacts & Catalog
Every compile and run writes queryable artifacts under target/ — a catalog of your models
and a history of your runs, as Parquet. Query them with SQL, summarize them, or generate a
browsable HTML catalog. No warehouse connection needed to read them.
What gets written
Section titled “What gets written”compile→target/catalog/{actions,dependencies,columns}.parquet(models, object-level dependency edges, documented columns).run→ two files per run, named by the run id (the time, in epoch milliseconds, when the run finished and its artifacts were written):target/runs/run_<run id>.parquet: one row per action, with its status, timing and error.target/run_summary/run_<run id>.parquet: one row for the run itself, withrun_idandrun_status. It’s written even when no action ran, so a run that executed nothing still shows up as the latest run.
Writing is best-effort — it never fails your compile/run. Disable with --no-artifacts.
Query it
Section titled “Query it”sqlanvil query "select type, count(*) as n from actions group by 1 order by 1"sqlanvil query "select run_id, run_status from run_summary order by run_id desc limit 5"sqlanvil query "select readable_name, error_message from runs where run_id = (select max(run_id) from run_summary) and status = 'FAILED'"sqlanvil query "select * from dependencies" --jsonViews available: actions, dependencies, columns (from compile), and
runs and run_summary (from run). Use run_summary to list runs, since it has a row
for every run, including runs where no action executed; join it to runs on run_id for
per-action detail. The run_summary view exists only once a run has written a summary file. It’s
just DuckDB SQL — join, filter, aggregate however you like. The Parquet files are also readable directly by
pandas/polars, DuckDB, or as external tables in BigQuery/Snowflake.
Summarize it
Section titled “Summarize it”sqlanvil inspectPrints action counts by type, the latest run’s status and timing, and up to 20 of its failures, in
name order. The latest run is the one with the highest run id, even if no action ran in it. Its
timing counts only actions that actually ran, not skipped or disabled ones. --json gives the same
summary as structured output.
Browse it
Section titled “Browse it”sqlanvil docs # writes target/docs/index.htmlA self-contained HTML catalog — models with their type, tags, description, columns, what they depend on, and their status in the latest run (none if the model didn’t run in it), with a filter box. One file, no server; open it in a browser.