pub enum ConstraintOperator {
Show 17 variants
EQ,
GT,
LE,
LT,
GE,
MATCH,
LIKE,
GLOB,
REGEXP,
NE,
ISNOT,
ISNOTNULL,
ISNULL,
IS,
LIMIT,
OFFSET,
FUNCTION(u8),
}
Expand description
Possible operators for a given constraint, found and used in xBestIndex and xFilter. https://www.sqlite.org/c3ref/c_index_constraint_eq.html TODO EQ=Equals, GT=GreaterThan, etc.
Variants§
EQ
‘Equals’, ex “=”
GT
‘Greater Than’, ex “>”
LE
‘Less than or equal to’, ex “<=”
LT
‘Less than’, ex “<”
GE
‘Greater than or equal to’, ex “>=”
MATCH
‘Match’ function
LIKE
‘LIKE’ function
GLOB
‘Glob’ function
REGEXP
‘REGEXP’ function
NE
‘Not equal to’, ex “!=” or “<>”
ISNOT
‘is not’ operation
ISNOTNULL
‘is not null’ operation
ISNULL
‘is null’ operation
IS
‘is’ operation
LIMIT
‘LIMIT’ constraint
OFFSET
‘OFFSET’ operation
FUNCTION(u8)
custom funciton overload, used in xFindFunction, see https://www.sqlite.org/vtab.html#xfindfunction
Trait Implementations§
Source§impl Debug for ConstraintOperator
impl Debug for ConstraintOperator
Source§impl<'de> Deserialize<'de> for ConstraintOperator
impl<'de> Deserialize<'de> for ConstraintOperator
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ConstraintOperator
impl PartialEq for ConstraintOperator
Source§impl Serialize for ConstraintOperator
impl Serialize for ConstraintOperator
impl Eq for ConstraintOperator
impl StructuralPartialEq for ConstraintOperator
Auto Trait Implementations§
impl Freeze for ConstraintOperator
impl RefUnwindSafe for ConstraintOperator
impl Send for ConstraintOperator
impl Sync for ConstraintOperator
impl Unpin for ConstraintOperator
impl UnwindSafe for ConstraintOperator
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