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

Public Member Functions

 AddColumnInfo (AlterEntryData data, ColumnDefinition new_column, bool if_column_not_exists)
unique_ptr< AlterInfo > Copy () const override
string ToString () const override
void Serialize (Serializer &serializer) const override
Public Member Functions inherited from duckdb::AlterTableInfo
 AlterTableInfo (AlterTableType type, AlterEntryData data)
CatalogType GetCatalogType () const override
void Serialize (Serializer &serializer) const override
Public Member Functions inherited from duckdb::AlterInfo
 AlterInfo (AlterType type, string catalog, string schema, string name, OnEntryNotFound if_not_found)
virtual string GetColumnName () const
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

ColumnDefinition new_column
 New column.
bool if_column_not_exists
 Whether or not an error should be thrown if the column exist.
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

Private Member Functions

 AddColumnInfo (ColumnDefinition new_column)

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

◆ AddColumnInfo() [1/2]

duckdb::AddColumnInfo::AddColumnInfo ( AlterEntryData data,
ColumnDefinition new_column,
bool if_column_not_exists )
338431 : AlterTableInfo(AlterTableType::ADD_COLUMN, std::move(data)), new_column(std::move(new_column)),
338433}
ColumnDefinition new_column
New column.
Definition duckdb.hpp:28609
bool if_column_not_exists
Whether or not an error should be thrown if the column exist.
Definition duckdb.hpp:28611

◆ ~AddColumnInfo()

duckdb::AddColumnInfo::~AddColumnInfo ( )
override
338435 {
338436}

◆ AddColumnInfo() [2/2]

duckdb::AddColumnInfo::AddColumnInfo ( ColumnDefinition new_column)
explicitprivate
338427 : AlterTableInfo(AlterTableType::ADD_COLUMN), new_column(std::move(new_column_p)) {
338428}

Member Function Documentation

◆ Copy()

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

Implements duckdb::AlterInfo.

338438 {
338439 return make_uniq_base<AlterInfo, AddColumnInfo>(GetAlterEntryData(), new_column.Copy(), if_column_not_exists);
338440}

◆ ToString()

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

Implements duckdb::AlterInfo.

338442 {
338443 string result = "";
338444 result += "ALTER TABLE ";
338445 if (if_not_found == OnEntryNotFound::RETURN_NULL) {
338446 result += " IF EXISTS";
338447 }
338448 result += QualifierToString(catalog, schema, name);
338449 result += " ADD COLUMN";
338450 if (if_column_not_exists) {
338451 result += " IF NOT EXISTS";
338452 }
338453 throw NotImplementedException("FIXME: column definition to string");
338454 result += ";";
338455 return result;
338456}
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

◆ Serialize()

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

Reimplemented from duckdb::ParseInfo.

418159 {
418160 AlterTableInfo::Serialize(serializer);
418161 serializer.WriteProperty<ColumnDefinition>(400, "new_column", new_column);
418162 serializer.WritePropertyWithDefault<bool>(401, "if_column_not_exists", if_column_not_exists);
418163}

◆ Deserialize()

unique_ptr< AlterTableInfo > duckdb::AddColumnInfo::Deserialize ( Deserializer & deserializer)
static
418165 {
418166 auto new_column = deserializer.ReadProperty<ColumnDefinition>(400, "new_column");
418167 auto result = duckdb::unique_ptr<AddColumnInfo>(new AddColumnInfo(std::move(new_column)));
418168 deserializer.ReadPropertyWithDefault<bool>(401, "if_column_not_exists", result->if_column_not_exists);
418169 return std::move(result);
418170}

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