pub struct EvalContext<'a> {
pub row: Option<&'a ResultRow>,
pub params: &'a [SQLParam],
pub engine: Option<&'a dyn EngineHook>,
/* private fields */
}Fields§
§row: Option<&'a ResultRow>§params: &'a [SQLParam]§engine: Option<&'a dyn EngineHook>Implementations§
Source§impl<'a> EvalContext<'a>
impl<'a> EvalContext<'a>
pub fn new(row: Option<&'a ResultRow>, params: &'a [SQLParam]) -> Self
pub fn from_row_lookup(row: &'a dyn RowLookup, params: &'a [SQLParam]) -> Self
pub fn with_engine(self, engine: &'a dyn EngineHook) -> Self
Sourcepub fn column_value(&self, name: &str) -> Result<Value>
pub fn column_value(&self, name: &str) -> Result<Value>
Resolve an unqualified column through the same row semantics used by
the AST evaluator. Physical scalar IR evaluators call this instead of
reconstructing an Expr::Column carrier.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for EvalContext<'a>
impl<'a> !Send for EvalContext<'a>
impl<'a> !Sync for EvalContext<'a>
impl<'a> !UnwindSafe for EvalContext<'a>
impl<'a> Freeze for EvalContext<'a>
impl<'a> Unpin for EvalContext<'a>
impl<'a> UnsafeUnpin 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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more