pub enum TokenKind {
Show 159 variants
Semicolon,
Explain,
Query,
Plan,
Begin,
Transaction,
Deferred,
Immediate,
Exclusive,
Commit,
End,
Rollback,
Savepoint,
Release,
To,
Table,
Create,
If,
Not,
Exists,
Temp,
LeftParen,
RightParen,
As,
Without,
Comma,
Id,
Indexed,
Abort,
Action,
After,
Analyze,
Asc,
Attach,
Before,
By,
Cascade,
Cast,
ColumnKw,
Conflict,
Database,
Desc,
Detach,
Each,
Fail,
For,
Ignore,
Initially,
Instead,
Like,
Match,
No,
Key,
Of,
Offset,
Pragma,
Raise,
Recursive,
Replace,
Restrict,
Row,
Trigger,
Vacuum,
View,
Virtual,
With,
Reindex,
Rename,
CurrentTime,
Any,
Or,
And,
Is,
Between,
In,
IsNull,
NotNull,
NotEqual,
Equal,
Greater,
LessOrEqual,
Less,
GreaterOrEqual,
Escape,
BitAnd,
BitOr,
LeftShift,
RightShift,
Plus,
Minus,
Star,
Slash,
Remainder,
Concat,
Collate,
BitNot,
String,
JoinKw,
Constraint,
Default,
Null,
Primary,
Unique,
Check,
References,
AutoIncrement,
On,
Insert,
Delete,
Update,
Set,
Deferrable,
Foreign,
Drop,
Union,
All,
Except,
Intersect,
Select,
Values,
Distinct,
Dot,
From,
Join,
Using,
Order,
Group,
Having,
Limit,
Where,
Into,
Integer,
Float,
Blob,
Variable,
Case,
When,
Then,
Else,
Index,
Alter,
Add,
ToText,
ToBlob,
ToNumeric,
ToInt,
ToReal,
IsNot,
EndOfFile,
Illegal,
Space,
UnclosedString,
Function,
Column,
AggFunction,
AggColumn,
UnaryMinus,
UnaryPlus,
Register,
}
Expand description
Describes the kind of token recognized
Many of these tokens are simply fixed words (e.g. SELECT) or punctuation.
Some of the more varied ones are:
Variable
: A placeholder for a value in a prepared statement.?
or?7
or@a
or:b
or#c
Space
: Whitespace, but also comments.Id
: A user-defined identifier.my_column
or[some table]
or"that function"
or`a trigger`
.String
: A string literal.'abcd'
or'planet''s moon'
Blob
: A hexadecimal-encoded byte sequence literal.x'FEFF6564'
Variants§
Semicolon
Explain
Query
Plan
Begin
Transaction
Deferred
Immediate
Exclusive
Commit
End
Rollback
Savepoint
Release
To
Table
Create
If
Not
Exists
Temp
LeftParen
RightParen
As
Without
Comma
Id
Indexed
Abort
Action
After
Analyze
Asc
Attach
Before
By
Cascade
Cast
ColumnKw
Conflict
Database
Desc
Detach
Each
Fail
For
Ignore
Initially
Instead
Like
Match
No
Key
Of
Offset
Pragma
Raise
Recursive
Replace
Restrict
Row
Trigger
Vacuum
View
Virtual
With
Reindex
Rename
CurrentTime
Any
Or
And
Is
Between
In
IsNull
NotNull
NotEqual
Equal
Greater
LessOrEqual
Less
GreaterOrEqual
Escape
BitAnd
BitOr
LeftShift
RightShift
Plus
Minus
Star
Slash
Remainder
Concat
Collate
BitNot
String
JoinKw
Constraint
Default
Null
Primary
Unique
Check
References
AutoIncrement
On
Insert
Delete
Update
Set
Deferrable
Foreign
Drop
Union
All
Except
Intersect
Select
Values
Distinct
Dot
From
Join
Using
Order
Group
Having
Limit
Where
Into
Integer
Float
Blob
Variable
Case
When
Then
Else
Index
Alter
Add
ToText
ToBlob
ToNumeric
ToInt
ToReal
IsNot
EndOfFile
Illegal
Space
UnclosedString
Function
Column
AggFunction
AggColumn
UnaryMinus
UnaryPlus
Register
Trait Implementations§
impl Copy for TokenKind
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 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