Skip to main content

map_children

Function map_children 

Source
pub fn map_children(
    expr: SqlExpression,
    f: impl FnMut(SqlExpression) -> SqlExpression,
) -> SqlExpression
Expand description

Rebuild expr, replacing each direct child expression with f(child).

Leaf nodes are returned unchanged. Subquery statements are a scope boundary and are not descended into — see the module docs. Use map_children_crossing when you need to rewrite them too.