pub enum TokenKind {
Show 159 variants
Integer(i64),
Float(f64),
String(String),
Blob(Vec<u8>),
Null,
True,
False,
Identifier(String),
QuotedIdentifier(String),
Create,
Table,
Index,
Drop,
Alter,
Add,
Column,
Rename,
Primary,
Key,
Foreign,
References,
Unique,
Default,
AutoIncrement,
If,
Exists,
Ignore,
Replace,
Conflict,
Do,
Nothing,
Duplicate,
Abort,
Fail,
Returning,
Select,
Insert,
Update,
Delete,
Into,
Values,
Set,
From,
Where,
Join,
Inner,
Left,
Right,
Outer,
Cross,
On,
Using,
As,
Distinct,
All,
Group,
Having,
Order,
By,
Asc,
Desc,
Nulls,
First,
Last,
Limit,
Offset,
Union,
Intersect,
Except,
And,
Or,
Not,
Is,
In,
Like,
Escape,
Between,
Case,
When,
Then,
Else,
End,
Cast,
Collate,
Begin,
Commit,
Rollback,
Transaction,
Savepoint,
Release,
Int,
IntegerKw,
Bigint,
Smallint,
Tinyint,
FloatKw,
Double,
Real,
Decimal,
Numeric,
Varchar,
Char,
Text,
BlobKw,
Boolean,
Bool,
Date,
Time,
Timestamp,
Datetime,
Count,
Sum,
Avg,
Min,
Max,
Vector,
VectorSearch,
JsonExtract,
JsonSet,
ContextWindow,
Embedding,
Cosine,
Euclidean,
DotProduct,
Plus,
Minus,
Star,
Slash,
Percent,
Eq,
Ne,
Lt,
Le,
Gt,
Ge,
Concat,
BitAnd,
BitOr,
BitNot,
LeftShift,
RightShift,
LParen,
RParen,
LBracket,
RBracket,
Comma,
Semicolon,
Dot,
Colon,
DoubleColon,
Arrow,
DoubleArrow,
QuestionMark,
At,
Placeholder(u32),
Comment(String),
Whitespace,
Eof,
Invalid(String),
}Expand description
Token classification
Variants§
Integer(i64)
Float(f64)
String(String)
Blob(Vec<u8>)
Null
True
False
Identifier(String)
QuotedIdentifier(String)
Create
Table
Index
Drop
Alter
Add
Column
Rename
Primary
Key
Foreign
References
Unique
Default
AutoIncrement
If
Exists
Ignore
Replace
Conflict
Do
Nothing
Duplicate
Abort
Fail
Returning
Select
Insert
Update
Delete
Into
Values
Set
From
Where
Join
Inner
Left
Right
Outer
Cross
On
Using
As
Distinct
All
Group
Having
Order
By
Asc
Desc
Nulls
First
Last
Limit
Offset
Union
Intersect
Except
And
Or
Not
Is
In
Like
Escape
Between
Case
When
Then
Else
End
Cast
Collate
Begin
Commit
Rollback
Transaction
Savepoint
Release
Int
IntegerKw
Bigint
Smallint
Tinyint
FloatKw
Double
Real
Decimal
Numeric
Varchar
Char
Text
BlobKw
Boolean
Bool
Date
Time
Timestamp
Datetime
Count
Sum
Avg
Min
Max
Vector
VectorSearch
JsonExtract
JsonSet
ContextWindow
Embedding
Cosine
Euclidean
DotProduct
Plus
Minus
Star
Slash
Percent
Eq
Ne
Lt
Le
Gt
Ge
Concat
BitAnd
BitOr
BitNot
LeftShift
RightShift
LParen
RParen
LBracket
RBracket
Comma
Semicolon
Dot
Colon
DoubleColon
Arrow
DoubleArrow
QuestionMark
At
Placeholder(u32)
Comment(String)
Whitespace
Eof
Invalid(String)
Implementations§
Trait Implementations§
impl Eq for TokenKind
impl StructuralPartialEq for TokenKind
Auto Trait Implementations§
impl Freeze for TokenKind
impl RefUnwindSafe for TokenKind
impl Send for TokenKind
impl Sync for TokenKind
impl Unpin for TokenKind
impl UnsafeUnpin for TokenKind
impl UnwindSafe for TokenKind
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
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
Compare self to
key and return true if they are equal.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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more