pub struct EvalContext<'a> {
pub columns: &'a [ColumnSchema],
pub table_alias: Option<&'a str>,
pub params: &'a [Value],
}Expand description
Resolution context for evaluating a single row. table_alias is the alias
(or table name) callers should accept as the qualifier on a column ref —
e.g. FROM users AS u makes u.name valid and rejects other.name.
Fields§
§columns: &'a [ColumnSchema]§table_alias: Option<&'a str>§params: &'a [Value]v6.1.1 — bound parameters for $N placeholders inside the
expression tree. Empty for simple queries; populated by the
prepared-statement Execute path with Bind values converted
to Value. Index N (1-based per PG) hits params[N-1].
Implementations§
Source§impl<'a> EvalContext<'a>
impl<'a> EvalContext<'a>
pub const fn new( columns: &'a [ColumnSchema], table_alias: Option<&'a str>, ) -> Self
Sourcepub const fn with_params(self, params: &'a [Value]) -> Self
pub const fn with_params(self, params: &'a [Value]) -> Self
v6.1.1 — attach a parameter buffer for $N placeholder
resolution. The slice must outlive the context; callers
construct it from the prepared statement’s Bind values.
Trait Implementations§
Source§impl<'a> Clone for EvalContext<'a>
impl<'a> Clone for EvalContext<'a>
Source§fn clone(&self) -> EvalContext<'a>
fn clone(&self) -> EvalContext<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for EvalContext<'a>
impl<'a> RefUnwindSafe for EvalContext<'a>
impl<'a> Send for EvalContext<'a>
impl<'a> Sync for EvalContext<'a>
impl<'a> Unpin for EvalContext<'a>
impl<'a> UnsafeUnpin for EvalContext<'a>
impl<'a> UnwindSafe for EvalContext<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more