Skip to main content

get_tables

Function get_tables 

Source
pub fn get_tables(expr: &Expression) -> Vec<&Expression>
Expand description

Collects all table references (Expression::Table) from the expression tree.

Performs a depth-first search and returns references to every table node found.

Note: DML target tables (Insert.table, Update.table, Delete.table) are stored as TableRef struct fields, not as Expression::Table nodes, so they are not reachable via tree traversal. Use get_all_tables to include those.