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::SQLStatement Class Referenceabstract

SQLStatement is the base class of any type of SQL statement. More...

Inheritance diagram for duckdb::SQLStatement:
Collaboration diagram for duckdb::SQLStatement:

Public Member Functions

 SQLStatement (StatementType type)
 
virtual string ToString () const =0
 
virtual DUCKDB_API unique_ptr< SQLStatementCopy () const =0
 Create a copy of this SelectStatement.
 
template<class TARGET >
TARGETCast ()
 
template<class TARGET >
const TARGETCast () const
 

Public Attributes

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_tnamed_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::INVALID_STATEMENT
 

Protected Member Functions

 SQLStatement (const SQLStatement &other)=default
 

Detailed Description

SQLStatement is the base class of any type of SQL statement.

Constructor & Destructor Documentation

◆ SQLStatement()

duckdb::SQLStatement::SQLStatement ( StatementType  type)
inlineexplicit
41972 : type(type) {
41973 }
StatementType type
The statement type.
Definition duckdb.hpp:41978

◆ ~SQLStatement()

virtual duckdb::SQLStatement::~SQLStatement ( )
inlinevirtual
41974 {
41975 }

Member Function Documentation

◆ ToString()

virtual string duckdb::SQLStatement::ToString ( ) const
pure virtual

Implemented in duckdb::SelectStatement.

◆ Copy()

virtual DUCKDB_API unique_ptr< SQLStatement > duckdb::SQLStatement::Copy ( ) const
pure virtual

◆ Cast() [1/2]

template<class TARGET >
TARGET & duckdb::SQLStatement::Cast ( )
inline
41999 {
42000 if (type != TARGET::TYPE && TARGET::TYPE != StatementType::INVALID_STATEMENT) {
42001 throw InternalException("Failed to cast statement to type - statement type mismatch");
42002 }
42003 return reinterpret_cast<TARGET &>(*this);
42004 }

◆ Cast() [2/2]

template<class TARGET >
const TARGET & duckdb::SQLStatement::Cast ( ) const
inline
42007 {
42008 if (type != TARGET::TYPE && TARGET::TYPE != StatementType::INVALID_STATEMENT) {
42009 throw InternalException("Failed to cast statement to type - statement type mismatch");
42010 }
42011 return reinterpret_cast<const TARGET &>(*this);
42012 }

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