Skip to contents

Python is only involved when extract_lineage() analyzes raw SQL strings (or falls back to sqlglot for a pipeline it cannot trace in R); dbplyr pipelines are analyzed by a pure-R engine. dplyneage declares its sqlglot dependency via reticulate::py_require(), so it is provisioned automatically the first time it is needed — you should not need to install anything. Use this to check availability, or to gate code that extracts lineage from raw SQL (examples, vignette chunks, Shiny apps). Note that calling it may initialize Python.

Usage

has_sqlglot()

Value

TRUE if sqlglot can be loaded, FALSE otherwise

See also

vignette("python-integration") for using your own Python environment

Examples

if (FALSE) { # \dontrun{
has_sqlglot()
} # }