Repository navigation
v1.3.3
Where a sync really reads from. For projects on PostgreSQL, drt docs can now show the physical tables a hand-written model reads, instead of only the profile — in the lineage graph, on each sync page, on the source pages and in the Overview table. Contributed by @Muawiya-contact. Opt-in and additive: the docs manifest moves to schema v8 (v1-v7 still load); nothing else changes.
Highlights
🧬 Table-level lineage from raw SQL (#1045)
Declare source: {type: postgres} in drt_project.yml, install the optional extra (pip install "drt-core[docs]", which brings SQLGlot), and a sync whose model is hand-written SQL lists the real tables it reads — public.customers, marketing.segments — instead of one generic profile node.
- Only physical tables are listed: CTEs, derived tables and table-valued functions are not, and neither are write-capable statements (
SELECT … INTO, data-modifying CTEs). - It is conservative: unparseable SQL, multiple statements, templated
{{ … }}models andref()models without a local.sqlfile keep the existing profile-level source rather than publishing a guess. - SQL text never enters the manifest, and relation names are built from identifiers only (a trailing
/* comment */cannot leak into a name). Note that the HTML YAML tab still shows the model as you wrote it, as before. - Manifest schema v8 adds an optional
syncs[].sourceslist;syncs[].sourcestays the first relation for older consumers. ADR 0020.
📋 Sources column in the Overview table (#1328)
Every sync row in the Overview now links the sources it reads (all of them for a multi-source sync), and the 8+ sync filter can find a sync by a source table name.
Fixes
- ADR 0020 linked to a non-existent ADR 0001 path, which made the drt-web docs sync fail its link check; fixed. The API reference now says manifest schema v8.
Postgres only for now; other dialects need their own fixtures and review.
Full changelog: v1.3.2...v1.3.3