Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
duckdb::Parser Class Reference
Collaboration diagram for duckdb::Parser:

Public Member Functions

 Parser (ParserOptions options=ParserOptions())
 
void ParseQuery (const string &query)
 
unique_ptr< SQLStatementGetStatement (const string &query)
 
void ThrowParserOverrideError (ParserOverrideResult &result)
 

Static Public Member Functions

static vector< SimplifiedTokenTokenize (const string &query)
 Tokenize a query, returning the raw tokens together with their locations.
 
static vector< SimplifiedTokenTokenizeError (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< ParserKeywordKeywordList ()
 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< OrderByNodeParseOrderList (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)
 

Public Attributes

vector< unique_ptr< SQLStatement > > statements
 The parsed SQL statements from an invocation to ParseQuery.
 

Private Attributes

ParserOptions options
 

Detailed Description

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.

Member Function Documentation

◆ ParseQuery()

void duckdb::Parser::ParseQuery ( const string &  query)

Attempts to parse a query into a series of SQL statements. Returns whether or not the parsing was successful. If the parsing was successful, the parsed statements will be stored in the statements variable.


The documentation for this class was generated from the following file: