Skip to main content

extract_all

Function extract_all 

Source
pub fn extract_all(sql: &str, macro_prefix: &str) -> JinjaExtraction
Expand description

Extract all refs, sources, and config from SQL content in a single pass. Tries minijinja rendering first; falls back to regex on failure.

macro_prefix is the pre-built concatenation of valid macro SQL files so that custom macros containing ref()/source() are expanded and tracked.