|
| | ChangeOwnershipInfo (CatalogType entry_catalog_type, string entry_catalog, string entry_schema, string entry_name, string owner_schema, string owner_name, OnEntryNotFound if_not_found) |
| CatalogType | GetCatalogType () const override |
| unique_ptr< AlterInfo > | Copy () const override |
| string | ToString () const override |
| void | Serialize (Serializer &serializer) const override |
| | AlterInfo (AlterType type, string catalog, string schema, string name, OnEntryNotFound if_not_found) |
| virtual string | GetColumnName () const |
| AlterEntryData | GetAlterEntryData () const |
| bool | IsAddPrimaryKey () const |
| | ParseInfo (ParseInfoType info_type) |
| template<class TARGET> |
| TARGET & | Cast () |
| template<class TARGET> |
| const TARGET & | Cast () const |
|
|
CatalogType | entry_catalog_type |
|
string | owner_schema |
|
string | owner_name |
|
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 |
| | AlterInfo (AlterType type) |
◆ ChangeOwnershipInfo() [1/2]
| duckdb::ChangeOwnershipInfo::ChangeOwnershipInfo |
( |
CatalogType | entry_catalog_type, |
|
|
string | entry_catalog, |
|
|
string | entry_schema, |
|
|
string | entry_name, |
|
|
string | owner_schema, |
|
|
string | owner_name, |
|
|
OnEntryNotFound | if_not_found ) |
338235 : AlterInfo(AlterType::CHANGE_OWNERSHIP, std::move(entry_catalog_p), std::move(entry_schema_p),
338237 entry_catalog_type(entry_catalog_type), owner_schema(std::move(owner_schema_p)),
338238 owner_name(std::move(owner_name_p)) {
338239}
OnEntryNotFound if_not_found
if exists
Definition duckdb.hpp:28310
◆ ChangeOwnershipInfo() [2/2]
| duckdb::ChangeOwnershipInfo::ChangeOwnershipInfo |
( |
| ) |
|
|
explicit |
338241 : AlterInfo(AlterType::CHANGE_OWNERSHIP) {
338242}
◆ GetCatalogType()
| CatalogType duckdb::ChangeOwnershipInfo::GetCatalogType |
( |
| ) |
const |
|
overridevirtual |
◆ Copy()
| unique_ptr< AlterInfo > duckdb::ChangeOwnershipInfo::Copy |
( |
| ) |
const |
|
overridevirtual |
Implements duckdb::AlterInfo.
338248 {
338249 return make_uniq_base<AlterInfo, ChangeOwnershipInfo>(entry_catalog_type,
catalog,
schema,
name, owner_schema,
338251}
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
◆ ToString()
| string duckdb::ChangeOwnershipInfo::ToString |
( |
| ) |
const |
|
overridevirtual |
Implements duckdb::AlterInfo.
338253 {
338254 string result = "";
338255
338256 result += "ALTER ";
338257 result += TypeToString(entry_catalog_type);
338258 result += " ";
338260 result += "IF EXISTS";
338261 }
338263 result += " OWNED BY ";
338264 result += QualifierToString(
catalog, owner_schema, owner_name);
338265 result += ";";
338266 return result;
338267}
◆ Serialize()
| void duckdb::ChangeOwnershipInfo::Serialize |
( |
Serializer & | serializer | ) |
const |
|
overridevirtual |
Reimplemented from duckdb::AlterInfo.
418262 {
418263 AlterInfo::Serialize(serializer);
418264 serializer.WriteProperty<CatalogType>(300, "entry_catalog_type", entry_catalog_type);
418265 serializer.WritePropertyWithDefault<string>(301, "owner_schema", owner_schema);
418266 serializer.WritePropertyWithDefault<string>(302, "owner_name", owner_name);
418267}
◆ Deserialize()
418269 {
418270 auto result = duckdb::unique_ptr<ChangeOwnershipInfo>(new ChangeOwnershipInfo());
418271 deserializer.ReadProperty<CatalogType>(300, "entry_catalog_type", result->entry_catalog_type);
418272 deserializer.ReadPropertyWithDefault<string>(301, "owner_schema", result->owner_schema);
418273 deserializer.ReadPropertyWithDefault<string>(302, "owner_name", result->owner_name);
418274 return std::move(result);
418275}
The documentation for this struct was generated from the following files: