pub fn extract_refs_and_sources(
sql: &str,
macro_prefix: &str,
) -> (Vec<RefCall>, Vec<SourceCall>)Expand description
Extract all ref() and source() calls 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.