extract_cte

Function extract_cte 

Source
pub fn extract_cte(ast: &SelectStatement, cte_name: &str) -> Option<String>
Expand description

Extract a specific CTE as a testable query Returns ALL CTEs up to and including the target, then SELECT * FROM target This ensures the query is executable since CTEs depend on previous CTEs