pub fn build_query(plan: &ActionPlan) -> Result<MainQuery>Expand description
Build SQL from an action plan.
The SQL only: who it runs as is not part of it. The role, the claims and
the rest of what makes a transaction the caller’s are a
Session’s, applied to the transaction before this
runs on it.