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

Public Member Functions

unique_ptr< SQLStatement > Copy () const override
 Create a copy of this SelectStatement.
string ToString () const override
Public Member Functions inherited from duckdb::SQLStatement
 SQLStatement (StatementType type)
template<class TARGET>
TARGET & Cast ()
template<class TARGET>
const TARGET & Cast () const

Public Attributes

vector< unique_ptr< SQLStatement > > statements
Public Attributes inherited from duckdb::SQLStatement
StatementType type
 The statement type.
idx_t stmt_location = 0
 The statement location within the query string.
idx_t stmt_length = 0
 The statement length within the query string.
case_insensitive_map_t< idx_t > named_param_map
 The map of named parameter to param index.
string query
 The query text that corresponds to this SQL statement.

Static Public Attributes

static constexpr const StatementType TYPE = StatementType::MULTI_STATEMENT
Static Public Attributes inherited from duckdb::SQLStatement
static constexpr const StatementType TYPE = StatementType::INVALID_STATEMENT

Protected Member Functions

 MultiStatement (const MultiStatement &other)
Protected Member Functions inherited from duckdb::SQLStatement
 SQLStatement (const SQLStatement &other)=default

Constructor & Destructor Documentation

◆ MultiStatement() [1/2]

duckdb::MultiStatement::MultiStatement ( )
349750 : SQLStatement(StatementType::MULTI_STATEMENT) {
349751}

◆ MultiStatement() [2/2]

duckdb::MultiStatement::MultiStatement ( const MultiStatement & other)
protected
349753 : SQLStatement(other) {
349754 for (auto &stmt : other.statements) {
349755 statements.push_back(stmt->Copy());
349756 }
349757}

Member Function Documentation

◆ Copy()

unique_ptr< SQLStatement > duckdb::MultiStatement::Copy ( ) const
overridevirtual

Create a copy of this SelectStatement.

Implements duckdb::SQLStatement.

349759 {
349760 return unique_ptr<MultiStatement>(new MultiStatement(*this));
349761}

◆ ToString()

string duckdb::MultiStatement::ToString ( ) const
overridevirtual

Implements duckdb::SQLStatement.

349763 {
349764 vector<string> stringified;
349765 for (auto &stmt : statements) {
349766 stringified.push_back(stmt->ToString());
349767 }
349768 return StringUtil::Join(stringified, ";") + ";";
349769}
static DUCKDB_API string Join(const vector< string > &input, const string &separator)
Join multiple strings into one string. Components are concatenated by the given separator.
Definition duckdb.cpp:109497

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