|
|
static vector< SimplifiedToken > | Tokenize (const string &query) |
| | Tokenize a query, returning the raw tokens together with their locations.
|
| |
|
static vector< SimplifiedToken > | TokenizeError (const string &error_msg) |
| | Tokenize an error message, returning the raw tokens together with their locations.
|
| |
|
static KeywordCategory | IsKeyword (const string &text) |
| | Returns true if the given text matches a keyword of the parser.
|
| |
|
static vector< ParserKeyword > | KeywordList () |
| | Returns a list of all keywords in the parser.
|
| |
|
static DUCKDB_API vector< unique_ptr< ParsedExpression > > | ParseExpressionList (const string &select_list, ParserOptions options=ParserOptions()) |
| | Parses a list of expressions (i.e. the list found in a SELECT clause)
|
| |
|
static GroupByNode | ParseGroupByList (const string &group_by, ParserOptions options=ParserOptions()) |
| | Parses a list of GROUP BY expressions.
|
| |
|
static vector< OrderByNode > | ParseOrderList (const string &select_list, ParserOptions options=ParserOptions()) |
| | Parses a list as found in an ORDER BY expression (i.e. including optional ASCENDING/DESCENDING modifiers)
|
| |
|
static void | ParseUpdateList (const string &update_list, vector< string > &update_columns, vector< unique_ptr< ParsedExpression > > &expressions, ParserOptions options=ParserOptions()) |
| | Parses an update list (i.e. the list found in the SET clause of an UPDATE statement)
|
| |
|
static vector< vector< unique_ptr< ParsedExpression > > > | ParseValuesList (const string &value_list, ParserOptions options=ParserOptions()) |
| | Parses a VALUES list (i.e. the list of expressions after a VALUES clause)
|
| |
|
static ColumnList | ParseColumnList (const string &column_list, ParserOptions options=ParserOptions()) |
| | Parses a column list (i.e. as found in a CREATE TABLE statement)
|
| |
|
static ColumnDefinition | ParseColumnDefinition (const string &column_definition, ParserOptions options=ParserOptions()) |
| |
|
static bool | StripUnicodeSpaces (const string &query_str, string &new_query) |
| |
The parser is responsible for parsing the query and converting it into a set of parsed statements. The parsed statements can then be converted into a plan and executed.