pub enum Keyword {
Show 271 variants
Select,
Distinct,
From,
Where,
Insert,
Into,
Replace,
Ignore,
Update,
Delete,
Duplicate,
Create,
Table,
Truncate,
Drop,
Alter,
And,
Or,
Not,
Null,
True,
False,
As,
Join,
Left,
Right,
Inner,
Outer,
Cross,
Full,
Natural,
On,
Group,
By,
Rollup,
Cube,
Sets,
Grouping,
GroupingId,
Having,
Order,
Asc,
Desc,
Limit,
Offset,
Set,
Values,
In,
Between,
Asymmetric,
Symmetric,
Like,
Exists,
If,
All,
Any,
Some,
Union,
Intersect,
Except,
With,
Recursive,
Date,
Time,
Timestamp,
Interval,
Cast,
Case,
When,
Then,
Else,
End,
Over,
Partition,
Rows,
Range,
Preceding,
Following,
Unbounded,
Current,
Primary,
Foreign,
Key,
Unique,
Check,
References,
Is,
Begin,
Commit,
Rollback,
Cascade,
Restrict,
Schema,
Start,
Transaction,
Add,
Column,
Constraint,
Default,
Rename,
Modify,
Change,
Savepoint,
Release,
To,
Role,
Both,
Leading,
Trailing,
Div,
Varying,
Characters,
Octets,
Using,
For,
CurrentDate,
CurrentTime,
CurrentTimestamp,
Grant,
Privileges,
Usage,
Option,
Revoke,
Granted,
Execute,
Trigger,
Under,
Domain,
Sequence,
Type,
Collation,
Character,
Translation,
View,
Index,
Analyze,
Reindex,
Explain,
Assertion,
Specific,
Before,
After,
Instead,
Of,
Each,
Row,
Statement,
Enable,
Disable,
Increment,
Minvalue,
Maxvalue,
Cycle,
No,
Restart,
Next,
Action,
Catalog,
Names,
Zone,
Local,
Session,
Global,
Year,
Quarter,
Month,
Week,
Day,
Hour,
Minute,
Second,
Microsecond,
Function,
Procedure,
Call,
Routine,
Method,
Constructor,
Static,
Instance,
Out,
InOut,
Returns,
While,
Do,
Loop,
Repeat,
Until,
Return,
Leave,
Iterate,
Deterministic,
Language,
Sql,
Security,
Definer,
Invoker,
Get,
Pad,
Space,
Collate,
Declare,
Cursor,
Insensitive,
Prepare,
Deallocate,
Scroll,
Hold,
Without,
Read,
Only,
Oids,
Open,
Fetch,
Close,
Prior,
First,
Last,
Absolute,
Relative,
Serializable,
Isolation,
Level,
Write,
Comment,
KeyBlockSize,
Connection,
InsertMethod,
RowFormat,
DelayKeyWrite,
TableChecksum,
Checksum,
StatsSamplePages,
Password,
AvgRowLength,
MinRows,
MaxRows,
SecondaryEngine,
Dynamic,
Fixed,
Compressed,
Redundant,
Compact,
Fulltext,
Match,
Against,
Boolean,
Expansion,
Mode,
Query,
Spatial,
Ivfflat,
Hnsw,
Lists,
Probes,
EfConstruction,
EfSearch,
M,
Show,
Describe,
Databases,
Tables,
Columns,
Fields,
Indexes,
Keys,
AutoIncrement,
Temp,
Temporary,
Storage,
Columnar,
}Expand description
SQL Keywords supported by the parser.
Variants§
Select
Distinct
From
Where
Insert
Into
Replace
Ignore
Update
Delete
Duplicate
Create
Table
Truncate
Drop
Alter
And
Or
Not
Null
True
False
As
Join
Left
Right
Inner
Outer
Cross
Full
Natural
On
Group
By
Rollup
Cube
Sets
Grouping
GroupingId
Having
Order
Asc
Desc
Limit
Offset
Set
Values
In
Between
Asymmetric
Symmetric
Like
Exists
If
All
Any
Some
Union
Intersect
Except
With
Recursive
Date
Time
Timestamp
Interval
Cast
Case
When
Then
Else
End
Over
Partition
Rows
Range
Preceding
Following
Unbounded
Current
Primary
Foreign
Key
Unique
Check
References
Is
Begin
Commit
Rollback
Cascade
Restrict
Schema
Start
Transaction
Add
Column
Constraint
Default
Rename
Modify
Change
Savepoint
Release
To
Role
Both
Leading
Trailing
Div
Varying
Characters
Octets
Using
For
CurrentDate
CurrentTime
CurrentTimestamp
Grant
Privileges
Usage
Option
Revoke
Granted
Execute
Trigger
Under
Domain
Sequence
Type
Collation
Character
Translation
View
Index
Analyze
Reindex
Explain
Assertion
Specific
Before
After
Instead
Of
Each
Row
Statement
Enable
Disable
Increment
Minvalue
Maxvalue
Cycle
No
Restart
Next
Action
Catalog
Names
Zone
Local
Session
Global
Year
Quarter
Month
Week
Day
Hour
Minute
Second
Microsecond
Function
Procedure
Call
Routine
Method
Constructor
Static
Instance
Out
InOut
Returns
While
Do
Loop
Repeat
Until
Return
Leave
Iterate
Deterministic
Language
Sql
Security
Definer
Invoker
Get
Pad
Space
Collate
Declare
Cursor
Insensitive
Prepare
Deallocate
Scroll
Hold
Without
Read
Only
Oids
Open
Fetch
Close
Prior
First
Last
Absolute
Relative
Serializable
Isolation
Level
Write
Comment
KeyBlockSize
Connection
InsertMethod
RowFormat
DelayKeyWrite
TableChecksum
Checksum
StatsSamplePages
Password
AvgRowLength
MinRows
MaxRows
SecondaryEngine
Dynamic
Fixed
Compressed
Redundant
Compact
Fulltext
Match
Against
Boolean
Expansion
Mode
Query
Spatial
Ivfflat
Hnsw
Lists
Probes
EfConstruction
EfSearch
M
Show
Describe
Databases
Tables
Columns
Fields
Indexes
Keys
AutoIncrement
Temp
Temporary
Storage
Columnar
Implementations§
Source§impl Keyword
impl Keyword
Sourcepub fn can_be_identifier(&self) -> bool
pub fn can_be_identifier(&self) -> bool
Returns true if this keyword can be used as an unquoted column or table name. These are “unreserved” keywords that are only treated as keywords in specific contexts.
This follows SQLite’s behavior where temporal type keywords (TIMESTAMP, DATE, TIME, INTERVAL) and interval unit keywords (YEAR, MONTH, DAY, etc.) can be used as identifiers without quoting.
Trait Implementations§
impl Copy for Keyword
impl Eq for Keyword
impl StructuralPartialEq for Keyword
Auto Trait Implementations§
impl Freeze for Keyword
impl RefUnwindSafe for Keyword
impl Send for Keyword
impl Sync for Keyword
impl Unpin for Keyword
impl UnwindSafe for Keyword
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