Enum sqlparser::tokenizer::Token [−][src]
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
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)
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
<<
, 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
impl Token
[src]
pub fn make_keyword(keyword: &str) -> Self
[src]
pub fn make_word(word: &str, quote_style: Option<char>) -> Self
[src]
Trait Implementations
impl Clone for Token
[src]
impl Debug for Token
[src]
impl Display for Token
[src]
impl Eq for Token
[src]
impl Hash for Token
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Token> for Token
[src]
impl StructuralEq for Token
[src]
impl StructuralPartialEq for Token
[src]
Auto Trait Implementations
impl RefUnwindSafe for Token
[src]
impl Send for Token
[src]
impl Sync for Token
[src]
impl Unpin for Token
[src]
impl UnwindSafe for Token
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,