|
|
string | old_name |
| | Column old name.
|
|
string | new_name |
| | Column new name.
|
|
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) |
◆ RenameColumnInfo() [1/2]
| duckdb::RenameColumnInfo::RenameColumnInfo |
( |
AlterEntryData | data, |
|
|
string | old_name_p, |
|
|
string | new_name_p ) |
338326 : AlterTableInfo(AlterTableType::RENAME_COLUMN, std::move(data)),
old_name(std::move(old_name_p)),
338327 new_name(std::move(new_name_p)) {
338328}
string new_name
Column new name.
Definition duckdb.hpp:28541
string old_name
Column old name.
Definition duckdb.hpp:28539
◆ ~RenameColumnInfo()
| duckdb::RenameColumnInfo::~RenameColumnInfo |
( |
| ) |
|
|
override |
◆ RenameColumnInfo() [2/2]
| duckdb::RenameColumnInfo::RenameColumnInfo |
( |
| ) |
|
|
private |
338330 : AlterTableInfo(AlterTableType::RENAME_COLUMN) {
338331}
◆ Copy()
◆ ToString()
| string duckdb::RenameColumnInfo::ToString |
( |
| ) |
const |
|
overridevirtual |
Implements duckdb::AlterInfo.
338340 {
338341 string result = "";
338342 result += "ALTER TABLE ";
338344 result += " IF EXISTS";
338345 }
338347 result += " RENAME COLUMN ";
338349 result += " TO ";
338351 result += ";";
338352 return result;
338353}
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::RenameColumnInfo::Serialize |
( |
Serializer & | serializer | ) |
const |
|
overridevirtual |
Reimplemented from duckdb::AlterTableInfo.
418432 {
418433 AlterTableInfo::Serialize(serializer);
418434 serializer.WritePropertyWithDefault<
string>(400,
"old_name",
old_name);
418435 serializer.WritePropertyWithDefault<
string>(401,
"new_name",
new_name);
418436}
◆ Deserialize()
418438 {
418439 auto result = duckdb::unique_ptr<RenameColumnInfo>(new RenameColumnInfo());
418440 deserializer.ReadPropertyWithDefault<string>(400, "old_name", result->old_name);
418441 deserializer.ReadPropertyWithDefault<string>(401, "new_name", result->new_name);
418442 return std::move(result);
418443}
The documentation for this struct was generated from the following files: