Trace the lineage of a column through a SQL query.
Column name to trace (e.g. "id", "users.name")
SQL string to analyze
Dialect for parsing (default: 'generic')
Trim SELECT to only target column (default: false)
const result = lineage("a", "SELECT a FROM t");// result.lineage.name === "a"// result.lineage.downstream[0].name === "t.a" Copy
const result = lineage("a", "SELECT a FROM t");// result.lineage.name === "a"// result.lineage.downstream[0].name === "t.a"
Trace the lineage of a column through a SQL query.