pub enum SchemaExprContext {
None,
CheckConstraint,
GeneratedColumn,
Index,
}Expand description
The schema-attached expression context an expression is being evaluated
in, if any. None (the default) means an ordinary query context where
non-deterministic date/time functions are allowed.
Variants§
None
Ordinary evaluation (SELECT, VALUES, WHERE, …): no restriction
CheckConstraint
A CHECK constraint expression
GeneratedColumn
A generated (computed) column expression
Index
An index expression or a partial index’s WHERE predicate
Implementations§
Source§impl SchemaExprContext
impl SchemaExprContext
Sourcepub fn description(self) -> Option<&'static str>
pub fn description(self) -> Option<&'static str>
SQLite’s human-readable name for the context, used in the
“non-deterministic use of f() in {ctx}” error message.
Returns None for the unrestricted context.
Sourcepub fn non_deterministic_error(self, func_name: &str) -> Option<ExecutorError>
pub fn non_deterministic_error(self, func_name: &str) -> Option<ExecutorError>
Build the SQLite-compatible rejection error for a non-deterministic
use of func_name in this context, or None when evaluation is
unrestricted. func_name may be uppercase (internal convention);
SQLite prints the lowercase function name.
Trait Implementations§
Source§impl Clone for SchemaExprContext
impl Clone for SchemaExprContext
Source§fn clone(&self) -> SchemaExprContext
fn clone(&self) -> SchemaExprContext
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for SchemaExprContext
Source§impl Debug for SchemaExprContext
impl Debug for SchemaExprContext
Source§impl Default for SchemaExprContext
impl Default for SchemaExprContext
Source§fn default() -> SchemaExprContext
fn default() -> SchemaExprContext
impl Eq for SchemaExprContext
Source§impl PartialEq for SchemaExprContext
impl PartialEq for SchemaExprContext
impl StructuralPartialEq for SchemaExprContext
Auto Trait Implementations§
impl Freeze for SchemaExprContext
impl RefUnwindSafe for SchemaExprContext
impl Send for SchemaExprContext
impl Sync for SchemaExprContext
impl Unpin for SchemaExprContext
impl UnsafeUnpin for SchemaExprContext
impl UnwindSafe for SchemaExprContext
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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> ⓘ
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> ⓘ
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