|
|
string | new_table_name |
| | Relation 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) |
◆ RenameTableInfo() [1/2]
| duckdb::RenameTableInfo::RenameTableInfo |
( |
AlterEntryData | data, |
|
|
string | new_name ) |
338400 : AlterTableInfo(AlterTableType::RENAME_TABLE, std::move(data)),
new_table_name(std::move(new_name_p)) {
338401}
◆ ~RenameTableInfo()
| duckdb::RenameTableInfo::~RenameTableInfo |
( |
| ) |
|
|
override |
◆ RenameTableInfo() [2/2]
| duckdb::RenameTableInfo::RenameTableInfo |
( |
| ) |
|
|
private |
338396 : AlterTableInfo(AlterTableType::RENAME_TABLE) {
338397}
◆ Copy()
◆ ToString()
| string duckdb::RenameTableInfo::ToString |
( |
| ) |
const |
|
overridevirtual |
Implements duckdb::AlterInfo.
338410 {
338411 string result = "";
338412 result += "ALTER TABLE ";
338414 result += " IF EXISTS";
338415 }
338417 result += " RENAME TO ";
338419 result += ";";
338420 return result;
338421}
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::RenameTableInfo::Serialize |
( |
Serializer & | serializer | ) |
const |
|
overridevirtual |
Reimplemented from duckdb::AlterTableInfo.
418469 {
418470 AlterTableInfo::Serialize(serializer);
418471 serializer.WritePropertyWithDefault<
string>(400,
"new_table_name",
new_table_name);
418472}
◆ Deserialize()
418474 {
418475 auto result = duckdb::unique_ptr<RenameTableInfo>(new RenameTableInfo());
418476 deserializer.ReadPropertyWithDefault<string>(400, "new_table_name", result->new_table_name);
418477 return std::move(result);
418478}
The documentation for this struct was generated from the following files: