Records the source(s) of a table for data lineage tracking. Lineage is stored in the table's comment as JSON metadata.
See also
db_get_lineage() to retrieve lineage
Examples
if (FALSE) { # \dontrun{
db_connect()
db_lineage(
table = "monthly_summary",
sources = c("raw.transactions", "raw.products"),
transformation = "Aggregated by month and product category"
)
} # }