Module mz_sql_parser::parser
source Β· Expand description
SQL Parser
Macros§
- maybe π
- parser_
err π
Structs§
- Parser πSQL Parser
- The result of successfully parsing a statement: both the AST and the SQL text that it corresponds to
Enums§
- IsLateral π
- IsOptional π
- Represents an expression or query (a βfragmentβ) with parentheses around it, when it is unknown whether the fragment belongs to a larger expression or query.
- Precedence πDefines a number of precedence classes operators follow. Since this enum derives Ord, the precedence classes are ordered from weakest binding at the top to tightest binding at the bottom.
- SetPrecedence π
Constants§
- ANY_
ALL_ πKEYWORDS Keywords that indicate the start of anANY
orALL
subquery operation. - Maximum allowed size for a batch of statements in bytes: 1MB.
- QUER
Y_ πSTAR T_ KEYWORDS Keywords that indicate the start of a (sub)query. - RECURSIO
N_ πLIMIT
Traits§
Functions§
- Parses a SQL string containing a single data type.
- Parses a SQL string containing one SQL expression.
- Parses a SQL string containing zero or more SQL statements.
- Parses a SQL string containing zero or more SQL statements. Statements larger than
MAX_STATEMENT_BATCH_SIZE
are rejected. - Parses a string containing a comma-separated list of identifiers and returns their underlying string values.