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

Public Member Functions

 SetVariableStatement (string name_p, unique_ptr< ParsedExpression > value_p, SetScope scope_p)
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

unique_ptr< ParsedExpression > value
Public Attributes inherited from duckdb::SetStatement
string name
SetScope scope
SetType set_type
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.

Protected Member Functions

 SetVariableStatement (const SetVariableStatement &other)
Protected Member Functions inherited from duckdb::SetStatement
 SetStatement (string name_p, SetScope scope_p, SetType type_p)
 SetStatement (const SetStatement &other)=default
Protected Member Functions inherited from duckdb::SQLStatement
 SQLStatement (const SQLStatement &other)=default

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ SetVariableStatement() [1/2]

duckdb::SetVariableStatement::SetVariableStatement ( string name_p,
unique_ptr< ParsedExpression > value_p,
SetScope scope_p )
349934 : SetStatement(std::move(name_p), scope_p, SetType::SET), value(std::move(value_p)) {
349935}

◆ SetVariableStatement() [2/2]

duckdb::SetVariableStatement::SetVariableStatement ( const SetVariableStatement & other)
protected
349938 : SetStatement(other), value(other.value->Copy()) {
349939}

Member Function Documentation

◆ Copy()

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

Create a copy of this SelectStatement.

Implements duckdb::SQLStatement.

349941 {
349942 return unique_ptr<SetVariableStatement>(new SetVariableStatement(*this));
349943}

◆ ToString()

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

Implements duckdb::SQLStatement.

349962 {
349963 return StringUtil::Format("SET %s %s TO %s;", ScopeToString(scope), name, value->ToString());
349964}
static string Format(const string fmt_str, ARGS... params)
Format a string using printf semantics.
Definition duckdb.hpp:4002

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