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::RenameFieldInfo Struct Reference
Inheritance diagram for duckdb::RenameFieldInfo:
Collaboration diagram for duckdb::RenameFieldInfo:

Public Member Functions

 RenameFieldInfo (AlterEntryData data, vector< string > column_path, string new_name_p)
unique_ptr< AlterInfo > Copy () const override
string ToString () const override
string GetColumnName () const override
void Serialize (Serializer &serializer) const override
Public Member Functions inherited from duckdb::AlterTableInfo
 AlterTableInfo (AlterTableType type, AlterEntryData data)
CatalogType GetCatalogType () const override
Public Member Functions inherited from duckdb::AlterInfo
 AlterInfo (AlterType type, string catalog, string schema, string name, OnEntryNotFound if_not_found)
AlterEntryData GetAlterEntryData () const
bool IsAddPrimaryKey () const
Public Member Functions inherited from duckdb::ParseInfo
 ParseInfo (ParseInfoType info_type)
template<class TARGET>
TARGET & Cast ()
template<class TARGET>
const TARGET & Cast () const

Static Public Member Functions

static unique_ptr< AlterTableInfo > Deserialize (Deserializer &deserializer)
Static Public Member Functions inherited from duckdb::AlterTableInfo
static unique_ptr< AlterInfo > Deserialize (Deserializer &deserializer)
Static Public Member Functions inherited from duckdb::AlterInfo
static unique_ptr< ParseInfo > Deserialize (Deserializer &deserializer)
Static Public Member Functions inherited from duckdb::ParseInfo
static unique_ptr< ParseInfo > Deserialize (Deserializer &deserializer)
static string QualifierToString (const string &catalog, const string &schema, const string &name)
static string TypeToString (CatalogType type)

Public Attributes

vector< string > column_path
 Path to source field.
string new_name
 New name of the column (field).
Public Attributes inherited from duckdb::AlterTableInfo
AlterTableType alter_table_type
Public Attributes inherited from duckdb::AlterInfo
AlterType type
OnEntryNotFound if_not_found
 if exists
string catalog
 Catalog name to alter.
string schema
 Schema name to alter.
string name
 Entry name to alter.
bool allow_internal
 Allow altering internal entries.
unique_ptr< LogicalDependencyList > new_dependencies
 New dependencies for the altered entry (set during binding).
Public Attributes inherited from duckdb::ParseInfo
ParseInfoType info_type

Additional Inherited Members

Static Public Attributes inherited from duckdb::AlterInfo
static constexpr const ParseInfoType TYPE = ParseInfoType::ALTER_INFO
Protected Member Functions inherited from duckdb::AlterTableInfo
 AlterTableInfo (AlterTableType type)
Protected Member Functions inherited from duckdb::AlterInfo
 AlterInfo (AlterType type)

Constructor & Destructor Documentation

◆ RenameFieldInfo() [1/2]

duckdb::RenameFieldInfo::RenameFieldInfo ( AlterEntryData data,
vector< string > column_path,
string new_name_p )
338359 : AlterTableInfo(AlterTableType::RENAME_FIELD, std::move(data)), column_path(std::move(column_path_p)),
338360 new_name(std::move(new_name_p)) {
338361}
vector< string > column_path
Path to source field.
Definition duckdb.hpp:28562
string new_name
New name of the column (field).
Definition duckdb.hpp:28564

◆ ~RenameFieldInfo()

duckdb::RenameFieldInfo::~RenameFieldInfo ( )
override
338366 {
338367}

◆ RenameFieldInfo() [2/2]

duckdb::RenameFieldInfo::RenameFieldInfo ( )
private
338363 : AlterTableInfo(AlterTableType::RENAME_FIELD) {
338364}

Member Function Documentation

◆ Copy()

unique_ptr< AlterInfo > duckdb::RenameFieldInfo::Copy ( ) const
overridevirtual

Implements duckdb::AlterInfo.

338369 {
338370 return make_uniq_base<AlterInfo, RenameFieldInfo>(GetAlterEntryData(), column_path, new_name);
338371}

◆ ToString()

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

Implements duckdb::AlterInfo.

338373 {
338374 string result = "";
338375 result += "ALTER TABLE ";
338376 if (if_not_found == OnEntryNotFound::RETURN_NULL) {
338377 result += " IF EXISTS";
338378 }
338379 result += QualifierToString(catalog, schema, name);
338380 result += " RENAME COLUMN ";
338381 for (idx_t i = 0; i < column_path.size(); i++) {
338382 if (i > 0) {
338383 result += ".";
338384 }
338386 }
338387 result += " TO ";
338389 result += ";";
338390 return result;
338391}
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
string catalog
Catalog name to alter.
Definition duckdb.hpp:28312
OnEntryNotFound if_not_found
if exists
Definition duckdb.hpp:28310
string name
Entry name to alter.
Definition duckdb.hpp:28316
string schema
Schema name to alter.
Definition duckdb.hpp:28314

◆ GetColumnName()

string duckdb::RenameFieldInfo::GetColumnName ( ) const
inlineoverridevirtual

Reimplemented from duckdb::AlterInfo.

28569 {
28570 return column_path[0];
28571 }

◆ Serialize()

void duckdb::RenameFieldInfo::Serialize ( Serializer & serializer) const
overridevirtual

Reimplemented from duckdb::AlterTableInfo.

418456 {
418457 AlterTableInfo::Serialize(serializer);
418458 serializer.WritePropertyWithDefault<vector<string>>(400, "column_path", column_path);
418459 serializer.WritePropertyWithDefault<string>(401, "new_name", new_name);
418460}

◆ Deserialize()

unique_ptr< AlterTableInfo > duckdb::RenameFieldInfo::Deserialize ( Deserializer & deserializer)
static
418462 {
418463 auto result = duckdb::unique_ptr<RenameFieldInfo>(new RenameFieldInfo());
418464 deserializer.ReadPropertyWithDefault<vector<string>>(400, "column_path", result->column_path);
418465 deserializer.ReadPropertyWithDefault<string>(401, "new_name", result->new_name);
418466 return std::move(result);
418467}

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