pub type BindError = UserParamError;Expand description
Public bind error alias matching the parameter-contract ADR wording.
Aliased Type§
pub enum BindError {
Arity {
expected: usize,
got: usize,
},
Gap {
missing: usize,
max: usize,
},
UnsupportedShape,
TypeMismatch {
slot: &'static str,
got: &'static str,
},
}Variants§
Arity
Caller supplied fewer or more values than the SQL references.
expected is the highest $N index in the SQL (so a SQL using
$1 and $3 reports expected = 3).
Gap
SQL uses $1 and $3 but not $2 — placeholder indices must
be a contiguous run starting from 1.
UnsupportedShape
The runtime accepts only QueryExpr variants supported by the
shape binder (Table / Join / Graph / Path / Vector / Hybrid).
Other shapes (DDL, KV ops, etc.) cannot carry placeholders in
the tracer-bullet scope.
TypeMismatch
A parameter was supplied in a slot that requires a specific type
(e.g. a vector slot received a string). slot describes the
context, got describes the user-supplied value’s variant.