pub enum Ty {
Text,
Int,
Num,
Bool,
Json,
Prop,
Null,
}Expand description
What a translated operand carries in SQL, as far as the translator can
tell statically. The comparison gate (comparable) declines the pairs
SQLite would compare with less type than the in-memory engine has.
Variants§
Text
A string literal or binding, a text column, a text intrinsic,
lower() / upper() output.
Int
An integer intrinsic ($ordinal, $depth).
Num
A number literal or binding.
Bool
A boolean literal or binding.
Json
A json_extract read (an attrs path or a bare attribute name):
JSON true and 1 both surface as 1, so a bool or num against it
tests json_type first ([typed_compare]).
Prop
A document property scalar (bare key on docs, doc.<k>): val_bool,
val_num and val_text coalesce into one column, and a list-valued or
nested key has no scalar row (NULL); a bool or num against it tests
p.type first ([typed_compare]).
Null
null (or an absent binding).
Trait Implementations§
impl Copy for Ty
impl Eq for Ty
impl StructuralPartialEq for Ty
Auto Trait Implementations§
impl Freeze for Ty
impl RefUnwindSafe for Ty
impl Send for Ty
impl Sync for Ty
impl Unpin for Ty
impl UnsafeUnpin for Ty
impl UnwindSafe for Ty
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
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§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.