pub enum Token {
Show 63 variants
Select,
Distinct,
From,
Where,
GroupBy,
Having,
OrderBy,
Limit,
PerPartitionLimit,
Offset,
And,
Or,
Not,
Like,
In,
Between,
As,
Asc,
Desc,
Allow,
Filtering,
Count,
Sum,
Avg,
Min,
Max,
Is,
Null,
Contains,
Key,
Writetime,
Ttl,
Equal,
NotEqual,
LessThan,
LessThanEqual,
GreaterThan,
GreaterThanEqual,
Plus,
Minus,
Multiply,
Divide,
Modulo,
Integer(i64),
Float(f64),
String(String),
Boolean(bool),
Uuid([u8; 16]),
Blob(Vec<u8>),
Identifier(String),
LeftParen,
RightParen,
LeftBracket,
RightBracket,
LeftBrace,
RightBrace,
Comma,
Semicolon,
Dot,
Question,
Eof,
Newline,
Whitespace,
}Expand description
Token types for CQL parsing
Variants§
Select
Distinct
From
Where
GroupBy
Having
OrderBy
Limit
PerPartitionLimit
Offset
And
Or
Not
Like
In
Between
As
Asc
Desc
Allow
Filtering
Count
Sum
Avg
Min
Max
Is
Null
Contains
Key
Writetime
Ttl
Equal
NotEqual
LessThan
LessThanEqual
GreaterThan
GreaterThanEqual
Plus
Minus
Multiply
Divide
Modulo
Integer(i64)
Float(f64)
String(String)
Boolean(bool)
Uuid([u8; 16])
Unquoted UUID literal (8-4-4-4-12 hex), e.g.
550e8400-e29b-41d4-a716-446655440000. Carries the 16 decoded bytes so
the parser can emit Value::Uuid directly (Issue #956). This is what
unblocks WHERE <uuid_pk> = <literal> matching and the #949
partition-targeted fast path for UUID-keyed tables.
Blob(Vec<u8>)
Unquoted blob literal in 0x... hex form (an even number of hex digits,
possibly empty: 0x). Carries the decoded bytes so the parser can emit
Value::Blob directly (Issue #956).
Identifier(String)
LeftParen
RightParen
LeftBracket
RightBracket
LeftBrace
RightBrace
Comma
Semicolon
Dot
Question
Eof
Newline
Whitespace
Trait Implementations§
impl StructuralPartialEq for Token
Auto Trait Implementations§
impl Freeze for Token
impl RefUnwindSafe for Token
impl Send for Token
impl Sync for Token
impl Unpin for Token
impl UnsafeUnpin for Token
impl UnwindSafe for Token
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