|
|
ColumnDefinition | new_column |
| | New column.
|
|
bool | if_column_not_exists |
| | Whether or not an error should be thrown if the column exist.
|
|
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) |
◆ AddColumnInfo() [1/2]
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 |
◆ AddColumnInfo() [2/2]
338427 : AlterTableInfo(AlterTableType::ADD_COLUMN),
new_column(std::move(new_column_p)) {
338428}
◆ Copy()
◆ ToString()
| string duckdb::AddColumnInfo::ToString |
( |
| ) |
const |
|
overridevirtual |
Implements duckdb::AlterInfo.
338442 {
338443 string result = "";
338444 result += "ALTER TABLE ";
338446 result += " IF EXISTS";
338447 }
338449 result += " ADD COLUMN";
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()
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: