|
|
vector< string > | column_path |
| | Path to source field.
|
|
string | new_name |
| | New name of the column (field).
|
|
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) |
◆ RenameFieldInfo() [1/2]
| duckdb::RenameFieldInfo::RenameFieldInfo |
( |
AlterEntryData | data, |
|
|
vector< string > | column_path, |
|
|
string | new_name_p ) |
338359 : AlterTableInfo(AlterTableType::RENAME_FIELD, std::move(data)),
column_path(std::move(column_path_p)),
338360 new_name(std::move(new_name_p)) {
338361}
vector< string > column_path
Path to source field.
Definition duckdb.hpp:28562
string new_name
New name of the column (field).
Definition duckdb.hpp:28564
◆ ~RenameFieldInfo()
| duckdb::RenameFieldInfo::~RenameFieldInfo |
( |
| ) |
|
|
override |
◆ RenameFieldInfo() [2/2]
| duckdb::RenameFieldInfo::RenameFieldInfo |
( |
| ) |
|
|
private |
338363 : AlterTableInfo(AlterTableType::RENAME_FIELD) {
338364}
◆ Copy()
◆ ToString()
| string duckdb::RenameFieldInfo::ToString |
( |
| ) |
const |
|
overridevirtual |
Implements duckdb::AlterInfo.
338373 {
338374 string result = "";
338375 result += "ALTER TABLE ";
338377 result += " IF EXISTS";
338378 }
338380 result += " RENAME COLUMN ";
338382 if (i > 0) {
338383 result += ".";
338384 }
338386 }
338387 result += " TO ";
338389 result += ";";
338390 return result;
338391}
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
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237
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
◆ GetColumnName()
| string duckdb::RenameFieldInfo::GetColumnName |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ Serialize()
| void duckdb::RenameFieldInfo::Serialize |
( |
Serializer & | serializer | ) |
const |
|
overridevirtual |
Reimplemented from duckdb::AlterTableInfo.
418456 {
418457 AlterTableInfo::Serialize(serializer);
418458 serializer.WritePropertyWithDefault<vector<string>>(400,
"column_path",
column_path);
418459 serializer.WritePropertyWithDefault<
string>(401,
"new_name",
new_name);
418460}
◆ Deserialize()
418462 {
418463 auto result = duckdb::unique_ptr<RenameFieldInfo>(new RenameFieldInfo());
418464 deserializer.ReadPropertyWithDefault<vector<string>>(400, "column_path", result->column_path);
418465 deserializer.ReadPropertyWithDefault<string>(401, "new_name", result->new_name);
418466 return std::move(result);
418467}
The documentation for this struct was generated from the following files: