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::SelectStatement Class Reference

SelectStatement is a typical SELECT clause. More...

#include <duckdb.hpp>

Inheritance diagram for duckdb::SelectStatement:
Collaboration diagram for duckdb::SelectStatement:

Public Member Functions

DUCKDB_API string ToString () const override
 Convert the SELECT statement to a string.
DUCKDB_API unique_ptr< SQLStatement > Copy () const override
 Create a copy of this SelectStatement.
bool Equals (const SQLStatement &other) const
 Whether or not the statements are equivalent.
void Serialize (Serializer &serializer) const
Public Member Functions inherited from duckdb::SQLStatement
 SQLStatement (StatementType type)
template<class TARGET>
TARGET & Cast ()
template<class TARGET>
const TARGET & Cast () const

Static Public Member Functions

static unique_ptr< SelectStatement > Deserialize (Deserializer &deserializer)

Public Attributes

unique_ptr< QueryNode > node
 The main query node.
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::SELECT_STATEMENT
Static Public Attributes inherited from duckdb::SQLStatement
static constexpr const StatementType TYPE = StatementType::INVALID_STATEMENT

Protected Member Functions

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

Detailed Description

SelectStatement is a typical SELECT clause.

Constructor & Destructor Documentation

◆ SelectStatement() [1/2]

duckdb::SelectStatement::SelectStatement ( )
inline
53800 : SQLStatement(StatementType::SELECT_STATEMENT) {
53801 }

◆ SelectStatement() [2/2]

duckdb::SelectStatement::SelectStatement ( const SelectStatement & other)
protected
349843 : SQLStatement(other), node(other.node->Copy()) {
349844}
unique_ptr< QueryNode > node
The main query node.
Definition duckdb.hpp:53804

Member Function Documentation

◆ ToString()

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

Convert the SELECT statement to a string.

Implements duckdb::SQLStatement.

349858 {
349859 return node->ToString();
349860}

◆ Copy()

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

Create a copy of this SelectStatement.

Implements duckdb::SQLStatement.

349846 {
349847 return unique_ptr<SelectStatement>(new SelectStatement(*this));
349848}

◆ Equals()

bool duckdb::SelectStatement::Equals ( const SQLStatement & other) const

Whether or not the statements are equivalent.

349850 {
349851 if (type != other_p.type) {
349852 return false;
349853 }
349854 auto &other = other_p.Cast<SelectStatement>();
349855 return node->Equals(other.node.get());
349856}
StatementType type
The statement type.
Definition duckdb.hpp:41978

◆ Serialize()

void duckdb::SelectStatement::Serialize ( Serializer & serializer) const
419273 {
419274 serializer.WritePropertyWithDefault<unique_ptr<QueryNode>>(100, "node", node);
419275 serializer.WritePropertyWithDefault<case_insensitive_map_t<idx_t>>(101, "named_param_map", named_param_map);
419276}
case_insensitive_map_t< idx_t > named_param_map
The map of named parameter to param index.
Definition duckdb.hpp:41984

◆ Deserialize()

unique_ptr< SelectStatement > duckdb::SelectStatement::Deserialize ( Deserializer & deserializer)
static
419278 {
419279 auto result = duckdb::unique_ptr<SelectStatement>(new SelectStatement());
419280 deserializer.ReadPropertyWithDefault<unique_ptr<QueryNode>>(100, "node", result->node);
419281 deserializer.ReadPropertyWithDefault<case_insensitive_map_t<idx_t>>(101, "named_param_map", result->named_param_map);
419282 return result;
419283}

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