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::ParsedStatementVerifier Class Reference
Inheritance diagram for duckdb::ParsedStatementVerifier:
Collaboration diagram for duckdb::ParsedStatementVerifier:

Public Member Functions

 ParsedStatementVerifier (unique_ptr< SQLStatement > statement_p, optional_ptr< case_insensitive_map_t< BoundParameterData > > parameters)
bool RequireEquality () const override
Public Member Functions inherited from duckdb::StatementVerifier
 StatementVerifier (VerificationType type, string name, unique_ptr< SQLStatement > statement_p, optional_ptr< case_insensitive_map_t< BoundParameterData > > values)
 StatementVerifier (unique_ptr< SQLStatement > statement_p, optional_ptr< case_insensitive_map_t< BoundParameterData > > values)
void CheckExpressions (const StatementVerifier &other) const
 Check whether expressions in this verifier and the other verifier match.
void CheckExpressions () const
 Check whether expressions within this verifier match.
virtual bool Run (ClientContext &context, const string &query, const std::function< unique_ptr< QueryResult >(const string &, unique_ptr< SQLStatement >, optional_ptr< case_insensitive_map_t< BoundParameterData > >)> &run)
 Run the select statement and store the result.
string CompareResults (const StatementVerifier &other)
 Compare this verifier's results with another verifier.
virtual bool DisableOptimizer () const
virtual bool DisableOperatorCaching () const
virtual bool ForceExternal () const
virtual bool ForceFetchRow () const

Static Public Member Functions

static unique_ptr< StatementVerifier > Create (const SQLStatement &statement, optional_ptr< case_insensitive_map_t< BoundParameterData > > parameters)
Static Public Member Functions inherited from duckdb::StatementVerifier
static unique_ptr< StatementVerifier > Create (VerificationType type, const SQLStatement &statement_p, optional_ptr< case_insensitive_map_t< BoundParameterData > > values)

Additional Inherited Members

Public Attributes inherited from duckdb::StatementVerifier
const VerificationType type
const string name
unique_ptr< SQLStatement > statement
optional_ptr< SelectStatement > select_statement
optional_ptr< case_insensitive_map_t< BoundParameterData > > parameters
const vector< unique_ptr< ParsedExpression > > & select_list
unique_ptr< MaterializedQueryResult > materialized_result

Constructor & Destructor Documentation

◆ ParsedStatementVerifier()

duckdb::ParsedStatementVerifier::ParsedStatementVerifier ( unique_ptr< SQLStatement > statement_p,
optional_ptr< case_insensitive_map_t< BoundParameterData > > parameters )
explicit
448515 : StatementVerifier(VerificationType::PARSED, "Parsed", std::move(statement_p), parameters) {
448516}

Member Function Documentation

◆ Create()

unique_ptr< StatementVerifier > duckdb::ParsedStatementVerifier::Create ( const SQLStatement & statement,
optional_ptr< case_insensitive_map_t< BoundParameterData > > parameters )
static
448520 {
448521 auto query_str = statement.ToString();
448522 Parser parser;
448523 try {
448524 parser.ParseQuery(query_str);
448525 } catch (std::exception &ex) {
448526 throw InternalException("Parsed statement verification failed. Query:\n%s\n\nError: %s", query_str, ex.what());
448527 }
448528 D_ASSERT(parser.statements.size() == 1);
448529 D_ASSERT(parser.statements[0]->type == StatementType::SELECT_STATEMENT);
448530 return make_uniq<ParsedStatementVerifier>(std::move(parser.statements[0]), parameters);
448531}

◆ RequireEquality()

bool duckdb::ParsedStatementVerifier::RequireEquality ( ) const
inlineoverridevirtual

Reimplemented from duckdb::StatementVerifier.

448501 {
448502 return false;
448503 }

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