|
|
case_insensitive_set_t | 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) |
◆ ResetTableOptionsInfo() [1/2]
| duckdb::ResetTableOptionsInfo::ResetTableOptionsInfo |
( |
AlterEntryData | data, |
|
|
case_insensitive_set_t | table_options ) |
338940 : AlterTableInfo(AlterTableType::RESET_TABLE_OPTIONS, std::move(data)), table_options(std::move(table_options)) {
338941}
◆ ~ResetTableOptionsInfo()
| duckdb::ResetTableOptionsInfo::~ResetTableOptionsInfo |
( |
| ) |
|
|
override |
◆ ResetTableOptionsInfo() [2/2]
| duckdb::ResetTableOptionsInfo::ResetTableOptionsInfo |
( |
| ) |
|
|
private |
338936 : AlterTableInfo(AlterTableType::RESET_TABLE_OPTIONS) {
338937}
◆ Copy()
Implements duckdb::AlterInfo.
338946 {
338947 case_insensitive_set_t table_options_copy;
338948 for (auto &option : table_options) {
338949 table_options_copy.emplace(option);
338950 }
338951 return make_uniq<ResetTableOptionsInfo>(GetAlterEntryData(), table_options_copy);
338952}
◆ ToString()
| string duckdb::ResetTableOptionsInfo::ToString |
( |
| ) |
const |
|
overridevirtual |
Implements duckdb::AlterInfo.
338954 {
338955 string result = "ALTER TABLE ";
338957 result += " RESET (";
338959 for (auto &entry : table_options) {
338960 if (i > 0) {
338961 result += ", ";
338962 }
338964 i++;
338965 }
338966 result += ")";
338967 return result;
338968}
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::ResetTableOptionsInfo::Serialize |
( |
Serializer & | serializer | ) |
const |
|
overridevirtual |
Reimplemented from duckdb::AlterTableInfo.
418491 {
418492 AlterTableInfo::Serialize(serializer);
418493 serializer.WriteProperty<case_insensitive_set_t>(400, "table_options", table_options);
418494}
◆ Deserialize()
418496 {
418497 auto result = duckdb::unique_ptr<ResetTableOptionsInfo>(new ResetTableOptionsInfo());
418498 deserializer.ReadProperty<case_insensitive_set_t>(400, "table_options", result->table_options);
418499 return std::move(result);
418500}
The documentation for this struct was generated from the following files: