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

Public Member Functions

 RemoveColumnInfo (AlterEntryData data, string removed_column, bool if_column_exists, bool cascade)
unique_ptr< AlterInfo > Copy () const override
string ToString () const override
void Serialize (Serializer &serializer) const override
string GetColumnName () 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

string removed_column
 The column to remove.
bool if_column_exists
 Whether or not an error should be thrown if the column does not exist.
bool cascade
 Whether or not the column should be removed if a dependency conflict arises (used by GENERATED columns).
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

◆ RemoveColumnInfo() [1/2]

duckdb::RemoveColumnInfo::RemoveColumnInfo ( AlterEntryData data,
string removed_column,
bool if_column_exists,
bool cascade )
338506 : AlterTableInfo(AlterTableType::REMOVE_COLUMN, std::move(data)), removed_column(std::move(removed_column)),
338508}
string removed_column
The column to remove.
Definition duckdb.hpp:28660
bool cascade
Whether or not the column should be removed if a dependency conflict arises (used by GENERATED column...
Definition duckdb.hpp:28664
bool if_column_exists
Whether or not an error should be thrown if the column does not exist.
Definition duckdb.hpp:28662

◆ ~RemoveColumnInfo()

duckdb::RemoveColumnInfo::~RemoveColumnInfo ( )
override
338509 {
338510}

◆ RemoveColumnInfo() [2/2]

duckdb::RemoveColumnInfo::RemoveColumnInfo ( )
private
338502 : AlterTableInfo(AlterTableType::REMOVE_COLUMN) {
338503}

Member Function Documentation

◆ Copy()

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

Implements duckdb::AlterInfo.

338512 {
338513 return make_uniq_base<AlterInfo, RemoveColumnInfo>(GetAlterEntryData(), removed_column, if_column_exists, cascade);
338514}

◆ ToString()

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

Implements duckdb::AlterInfo.

338516 {
338517 string result = "";
338518 result += "ALTER TABLE ";
338519 if (if_not_found == OnEntryNotFound::RETURN_NULL) {
338520 result += " IF EXISTS";
338521 }
338522 result += QualifierToString(catalog, schema, name);
338523 result += " DROP COLUMN ";
338524 if (if_column_exists) {
338525 result += "IF EXISTS ";
338526 }
338528 if (cascade) {
338529 result += " CASCADE";
338530 }
338531 result += ";";
338532 return result;
338533}
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
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::RemoveColumnInfo::Serialize ( Serializer & serializer) const
overridevirtual

Reimplemented from duckdb::AlterTableInfo.

418402 {
418403 AlterTableInfo::Serialize(serializer);
418404 serializer.WritePropertyWithDefault<string>(400, "removed_column", removed_column);
418405 serializer.WritePropertyWithDefault<bool>(401, "if_column_exists", if_column_exists);
418406 serializer.WritePropertyWithDefault<bool>(402, "cascade", cascade);
418407}

◆ Deserialize()

unique_ptr< AlterTableInfo > duckdb::RemoveColumnInfo::Deserialize ( Deserializer & deserializer)
static
418409 {
418410 auto result = duckdb::unique_ptr<RemoveColumnInfo>(new RemoveColumnInfo());
418411 deserializer.ReadPropertyWithDefault<string>(400, "removed_column", result->removed_column);
418412 deserializer.ReadPropertyWithDefault<bool>(401, "if_column_exists", result->if_column_exists);
418413 deserializer.ReadPropertyWithDefault<bool>(402, "cascade", result->cascade);
418414 return std::move(result);
418415}

◆ GetColumnName()

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

Reimplemented from duckdb::AlterInfo.

28671 {
28672 return removed_column;
28673 }

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