Skip to main content

bind_statement_with

Function bind_statement_with 

Source
pub fn bind_statement_with(
    ast: &Ast,
    catalog: &Catalog,
    parameters: &Parameters,
) -> Result<Bound>
Expand description

Binds one parsed statement against a catalog, with values for its parameters.

This is the prepared statement path. The statement is parsed once and bound once per set of values, so a parameter is a constant by the time the plan exists and everything after the binder sees an ordinary query. That is why there is no parameter in rudb_plan::Expr.

ยงErrors

Everything bind_statement reports, plus an error for a parameter that was given no value.