Skip to main content

bind_with

Function bind_with 

Source
pub fn bind_with(
    ast: &Ast,
    catalog: &Catalog,
    parameters: &Parameters,
    session: &Session,
) -> Result<Plan>
Expand description

Binds a parsed query against a catalog, with values for its parameters and its settings.

The session is what current_setting() reads, and a caller with no database behind it passes an empty one, which makes every setting name unrecognized rather than making up an answer.

ยงErrors

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