Struct sqlparser::sqlparser::Parser[][src]

pub struct Parser { /* fields omitted */ }

SQL Parser

Methods

impl Parser
[src]

Parse the specified tokens

Parse a SQL statement and produce an Abstract Syntax Tree (AST)

Parse a new expression

Parse tokens until the precedence changes

Parse an expression prefix

Parse a SQL CAST function e.g. CAST(expr AS FLOAT)

Parse an expression infix (typically an operator)

Convert a token operator to an AST operator

Get the precedence of the next token

Get the precedence of a token

Peek at the next token

Get the next token and increment the token index

Get the previous token and decrement the token index

Look for an expected keyword and consume it if it exists

Look for an expected sequence of keywords and consume them if they exist

Consume the next token if it matches the expected token, otherwise return an error

Parse a SQL CREATE statement

Parse a literal integer/long

Parse a literal string

Parse a SQL datatype (in the context of a CREATE TABLE statement for example)

Parse a SELECT statement

Parse a comma-delimited list of SQL expressions

Parse a comma-delimited list of SQL ORDER BY expressions

Parse a LIMIT clause

Auto Trait Implementations

impl Send for Parser

impl Sync for Parser