Enum sql_ast::tokenizer::Token [−][src]
pub enum Token {}Show variants
Word(Word), Number(String), Char(char), SingleQuotedString(String), NationalStringLiteral(String), HexStringLiteral(String), Comma, Whitespace(Whitespace), Eq, Neq, Lt, Gt, LtEq, GtEq, Plus, Minus, Mult, Div, Mod, LParen, RParen, Period, Colon, DoubleColon, SemiColon, Backslash, LBracket, RBracket, Ampersand, LBrace, RBrace,
Expand description
SQL Token enumeration
Variants
Word(Word)
A keyword (like SELECT) or an optionally quoted SQL identifier
Number(String)
An unsigned numeric literal
Char(char)
A character that could not be tokenized
SingleQuotedString(String)
Single quoted string: i.e: ‘string’
NationalStringLiteral(String)
“National” string literal: i.e: N’string’
HexStringLiteral(String)
Hexadecimal string literal: i.e.: X’deadbeef’
Comma
Whitespace(Whitespace)
Whitespace (space, tab, etc)
Equality operator =
Not Equals operator <>
(or !=
in some dialects)
Less Than operator <
Greater han operator >
Less Than Or Equals operator <=
Greater Than Or Equals operator >=
Plus operator +
Minus operator -
Multiplication operator *
Division operator /
Modulo Operator %
Left parenthesis (
Right parenthesis )
Period (used for compound identifiers or projections into nested types)
Colon :
DoubleColon ::
(used for casting in postgresql)
SemiColon ;
used as separator for COPY and payload
Backslash \
used in terminating the COPY payload with \.
Left bracket [
Right bracket ]
Ampersand &
Left brace {
Right brace }
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Token
impl UnwindSafe for Token
Blanket Implementations
Mutably borrows from an owned value. Read more