pub enum TokenKind<'a> {
Show 176 variants
Integer(i64),
Float(f64),
String(Cow<'a, str>),
Blob(Vec<u8>),
Null,
True,
False,
Identifier(&'a str),
QuotedIdentifier(Cow<'a, str>),
Create,
Table,
Index,
Drop,
Alter,
Add,
Column,
Rename,
To,
Cascade,
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,
Relate,
Live,
Content,
Event,
Diff,
Define,
Scope,
Remove,
Session,
Signin,
Signup,
Permissions,
For,
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,
LeftArrow,
BiArrow,
QuestionMark,
At,
Placeholder(u32),
Comment(&'a str),
Whitespace,
Eof,
Invalid(&'a str),
}Expand description
Token classification
Variants§
Integer(i64)
Float(f64)
String(Cow<'a, str>)
Blob(Vec<u8>)
Null
True
False
Identifier(&'a str)
QuotedIdentifier(Cow<'a, str>)
Create
Table
Index
Drop
Alter
Add
Column
Rename
To
Cascade
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
Relate
Live
Content
Event
Diff
Define
Scope
Remove
Session
Signin
Signup
Permissions
For
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
LeftArrow
BiArrow
QuestionMark
At
Placeholder(u32)
Comment(&'a str)
Whitespace
Eof
Invalid(&'a str)
Implementations§
Trait Implementations§
impl Eq for TokenKind<'_>
Source§impl<'a> PartialEq for TokenKind<'a>
impl<'a> PartialEq for TokenKind<'a>
impl<'a> StructuralPartialEq for TokenKind<'a>
Auto Trait Implementations§
impl<'a> Freeze for TokenKind<'a>
impl<'a> RefUnwindSafe for TokenKind<'a>
impl<'a> Send for TokenKind<'a>
impl<'a> Sync for TokenKind<'a>
impl<'a> Unpin for TokenKind<'a>
impl<'a> UnsafeUnpin for TokenKind<'a>
impl<'a> UnwindSafe for TokenKind<'a>
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
Mutably borrows from an owned value. Read more
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
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<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 more