Skip to main content

find_window_tvf

Function find_window_tvf 

Source
pub fn find_window_tvf(sql: &str) -> Option<(usize, WindowTvf<'_>, usize)>
Expand description

Scan sql for the first occurrence of a window TVF in a FROM clause and return (pre, tvf, post) where pre + rewrite(tvf) + post produces the final SQL. Returns None if no TVF is found.