Expand description
Emit SQL table/column-use facts with precision markers.
Walks a populated SqlStatementModel (tables + columns
filled by SQLSEM-002 / SQLSEM-003) and emits normalized
[Fact]s into a FactStore. Every fact carries a precision
marker so the lineage layer can weight the edge:
exact— table/column resolved against a single bound alias or single-table scope.expression— column came from a projection expression (function call / arithmetic) rather than a bare reference.unknown— bare column with ambiguous (multi-table) scope or a qualifier that didn’t bind.
The marker is encoded into the DependencyEdge.edge_kind
string (ReadsColumn:exact, WritesColumn:unknown, …) so it
survives the FACT-001 wire shape without a schema change.
§/oracle evidence
DATABASE-REFERENCE.mdPL/SQL Language Reference — the table/column reference grammar.LOW-LEVEL-CATALOGS.mdData Dictionary View Families —ALL_TAB_COLUMNS/ALL_DEPENDENCIESare the server-side mirrors; the precision marker records how confident the source-only pass is before that cross-check.
Functions§
- emit_
sql_ use_ facts - Emit table-level + column-level use facts for one statement.
owner_logical_idis the routine the statement lives in (thefromside of every edge). Returns the post-dedup count of facts added. - emit_
sql_ use_ facts_ for_ model - Emit use facts for every statement in a
SqlSemanticModel.