Enum models_parser::tokenizer::Token [−][src]
pub enum Token {
Show 50 variants
EOF,
Word(Word),
Number(String, bool),
Char(char),
SingleQuotedString(String),
NationalStringLiteral(String),
HexStringLiteral(String),
Comma,
Whitespace(Whitespace),
DoubleEq,
Eq,
Neq,
Lt,
Gt,
LtEq,
GtEq,
Spaceship,
Plus,
Minus,
Mult,
Div,
Mod,
StringConcat,
LParen,
RParen,
Period,
Colon,
DoubleColon,
SemiColon,
Backslash,
LBracket,
RBracket,
Ampersand,
Pipe,
Caret,
LBrace,
RBrace,
RArrow,
Sharp,
Tilde,
TildeAsterisk,
ExclamationMarkTilde,
ExclamationMarkTildeAsterisk,
ShiftLeft,
ShiftRight,
ExclamationMark,
DoubleExclamationMark,
AtSign,
PGSquareRoot,
PGCubeRoot,
}
Expand description
SQL Token enumeration
Variants
An end-of-file marker, not a real token
Word(Word)
A keyword (like SELECT) or an optionally quoted SQL identifier
Tuple Fields of Word
0: Word
An unsigned numeric literal
Char(char)
A character that could not be tokenized
Tuple Fields of Char
0: char
SingleQuotedString(String)
Single quoted string: i.e: ‘string’
Tuple Fields of SingleQuotedString
0: String
NationalStringLiteral(String)
“National” string literal: i.e: N’string’
Tuple Fields of NationalStringLiteral
0: String
HexStringLiteral(String)
Hexadecimal string literal: i.e.: X’deadbeef’
Tuple Fields of HexStringLiteral
0: String
Comma
Whitespace(Whitespace)
Whitespace (space, tab, etc)
Tuple Fields of Whitespace
0: Whitespace
Double equals sign ==
Equality operator =
Not Equals operator <>
(or !=
in some dialects)
Less Than operator <
Greater Than operator >
Less Than Or Equals operator <=
Greater Than Or Equals operator >=
Spaceship operator <=>
Plus operator +
Minus operator -
Multiplication operator *
Division operator /
Modulo Operator %
String concatenation ||
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 &
Pipe |
Caret ^
Left brace {
Right brace }
Right Arrow =>
Sharp #
used for PostgreSQL Bitwise XOR operator
Tilde ~
used for PostgreSQL Bitwise NOT operator or case sensitive match regular expression operator
~*
, a case insensitive match regular expression operator in PostgreSQL
!~
, a case sensitive not match regular expression operator in PostgreSQL
!~*
, a case insensitive not match regular expression operator in PostgreSQL
<<
, a bitwise shift left operator in PostgreSQL
>>
, a bitwise shift right operator in PostgreSQL
Exclamation Mark !
used for PostgreSQL factorial operator
Double Exclamation Mark !!
used for PostgreSQL prefix factorial operator
AtSign @
used for PostgreSQL abs operator
|/
, a square root math operator in PostgreSQL
||/
, a cube root math operator in PostgreSQL
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Token
impl UnwindSafe for Token
Blanket Implementations
Mutably borrows from an owned value. Read more