|
|
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).
|
|
AlterTableType | alter_table_type |
|
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).
|
|
ParseInfoType | info_type |
|
|
static constexpr const ParseInfoType | TYPE = ParseInfoType::ALTER_INFO |
| | AlterTableInfo (AlterTableType type) |
| | AlterInfo (AlterType type) |
◆ RemoveColumnInfo() [1/2]
| duckdb::RemoveColumnInfo::RemoveColumnInfo |
( |
AlterEntryData | data, |
|
|
string | removed_column, |
|
|
bool | if_column_exists, |
|
|
bool | cascade ) |
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 |
◆ RemoveColumnInfo() [2/2]
| duckdb::RemoveColumnInfo::RemoveColumnInfo |
( |
| ) |
|
|
private |
338502 : AlterTableInfo(AlterTableType::REMOVE_COLUMN) {
338503}
◆ Copy()
◆ ToString()
| string duckdb::RemoveColumnInfo::ToString |
( |
| ) |
const |
|
overridevirtual |
Implements duckdb::AlterInfo.
338516 {
338517 string result = "";
338518 result += "ALTER TABLE ";
338520 result += " IF EXISTS";
338521 }
338523 result += " DROP COLUMN ";
338525 result += "IF EXISTS ";
338526 }
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()
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 |
The documentation for this struct was generated from the following files: