Skip to contents

Main Functions

Core functions for extracting and visualizing lineage

extract_lineage()
Extract column lineage from a dplyr pipeline or SQL query
lineage_flow()
Render an interactive column lineage diagram
lineage_example()
A built-in example lineage diagram
lineage_flowOutput() renderLineageFlow()
Shiny bindings for lineage_flow

Working with Lineage

Query, compare, and traverse extracted lineage as plain data

lineage_edges()
Lineage edges as a data frame
lineage_tables()
Lineage tables as a data frame
lineage_upstream() lineage_downstream()
Trace a column's ancestry or descendants
lineage_unused()
Report columns with no path to any target
lineage_diff() lineage_has_changes()
Compare two lineage extractions
lineage_check()
Gate a CI run on lineage changes

Manual Lineage Creation

Functions for manually creating lineage visualizations

create_table_node()
Create a table node for a lineage diagram
create_column_edge()
Connect two columns in a lineage diagram

Export

Serialize lineage to interchange formats for graph tools, CI, and data catalogs

lineage_json() lineage_from_json()
Export lineage as JSON, and read it back
lineage_graphml()
Export lineage as GraphML
lineage_mermaid()
Export lineage as a Mermaid flowchart
lineage_openlineage()
Export lineage as OpenLineage events
lineage_emit()
Send OpenLineage events to a backend over HTTP

Python Integration

Python (sqlglot) is used for raw SQL input, duckplyr frames, and dbplyr pipelines that embed raw SQL. It is provisioned automatically; this helper checks availability

has_sqlglot()
Is the Python sqlglot dependency available?

Bundle Management

The React Flow bundle ships pre-built; this helper checks it exists

has_bundle()
Is the React Flow bundle available?