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

Public Member Functions

unique_ptr< UpdateSetInfo > Copy () const
string ToString () const

Public Attributes

unique_ptr< ParsedExpression > condition
vector< string > columns
vector< unique_ptr< ParsedExpression > > expressions

Protected Member Functions

 UpdateSetInfo (const UpdateSetInfo &other)

Constructor & Destructor Documentation

◆ UpdateSetInfo() [1/2]

duckdb::UpdateSetInfo::UpdateSetInfo ( )
350077 {
350078}

◆ UpdateSetInfo() [2/2]

duckdb::UpdateSetInfo::UpdateSetInfo ( const UpdateSetInfo & other)
protected
350080 : columns(other.columns) {
350081 if (other.condition) {
350082 condition = other.condition->Copy();
350083 }
350084 for (auto &expr : other.expressions) {
350085 expressions.emplace_back(expr->Copy());
350086 }
350087}

Member Function Documentation

◆ Copy()

unique_ptr< UpdateSetInfo > duckdb::UpdateSetInfo::Copy ( ) const
350104 {
350105 return unique_ptr<UpdateSetInfo>(new UpdateSetInfo(*this));
350106}

◆ ToString()

string duckdb::UpdateSetInfo::ToString ( ) const
350089 {
350090 string result;
350091 result += "SET ";
350092 D_ASSERT(columns.size() == expressions.size());
350093 for (idx_t i = 0; i < columns.size(); i++) {
350094 if (i > 0) {
350095 result += ", ";
350096 }
350097 result += KeywordHelper::WriteOptionallyQuoted(columns[i]);
350098 result += " = ";
350099 result += expressions[i]->ToString();
350100 }
350101 return result;
350102}
static string WriteOptionallyQuoted(const string &text, char quote='"', bool allow_caps = true, KeywordCategory category = KeywordCategory::KEYWORD_NONE)
Writes a string that is optionally quoted + escaped so it can be used as an identifier.
Definition duckdb.cpp:338034
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237

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