|
|
case_insensitive_map_t< unique_ptr< ParsedExpression > > | table_options |
|
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) |
◆ SetTableOptionsInfo() [1/2]
338903 : AlterTableInfo(AlterTableType::SET_TABLE_OPTIONS, std::move(data)), table_options(std::move(table_options)) {
338904}
◆ ~SetTableOptionsInfo()
| duckdb::SetTableOptionsInfo::~SetTableOptionsInfo |
( |
| ) |
|
|
override |
◆ SetTableOptionsInfo() [2/2]
| duckdb::SetTableOptionsInfo::SetTableOptionsInfo |
( |
| ) |
|
|
private |
338898 : AlterTableInfo(AlterTableType::SET_TABLE_OPTIONS) {
338899}
◆ Copy()
Implements duckdb::AlterInfo.
338909 {
338910 case_insensitive_map_t<unique_ptr<ParsedExpression>> table_options_copy;
338911 for (auto &option : table_options) {
338912 table_options_copy.emplace(option.first, option.second->Copy());
338913 }
338914 return make_uniq<SetTableOptionsInfo>(GetAlterEntryData(), std::move(table_options_copy));
338915}
◆ ToString()
| string duckdb::SetTableOptionsInfo::ToString |
( |
| ) |
const |
|
overridevirtual |
Implements duckdb::AlterInfo.
338917 {
338918 string result = "ALTER TABLE ";
338920 result += " SET (";
338922 for (auto &entry : table_options) {
338923 if (i > 0) {
338924 result += ", ";
338925 }
338927 i++;
338928 }
338929 result += ")";
338930 return result;
338931}
static string WriteQuoted(const string &text, char quote='\'')
Writes a string that is quoted.
Definition duckdb.cpp:338028
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
string name
Entry name to alter.
Definition duckdb.hpp:28316
string schema
Schema name to alter.
Definition duckdb.hpp:28314
◆ Serialize()
| void duckdb::SetTableOptionsInfo::Serialize |
( |
Serializer & | serializer | ) |
const |
|
overridevirtual |
Reimplemented from duckdb::AlterTableInfo.
418576 {
418577 AlterTableInfo::Serialize(serializer);
418578 serializer.WritePropertyWithDefault<case_insensitive_map_t<unique_ptr<ParsedExpression>>>(400, "table_options", table_options);
418579}
◆ Deserialize()
418581 {
418582 auto result = duckdb::unique_ptr<SetTableOptionsInfo>(new SetTableOptionsInfo());
418583 deserializer.ReadPropertyWithDefault<case_insensitive_map_t<unique_ptr<ParsedExpression>>>(400, "table_options", result->table_options);
418584 return std::move(result);
418585}
The documentation for this struct was generated from the following files: