Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
duckdb::ChangeOwnershipInfo Struct Reference
Inheritance diagram for duckdb::ChangeOwnershipInfo:
Collaboration diagram for duckdb::ChangeOwnershipInfo:

Public Member Functions

 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
Public Member Functions inherited from duckdb::AlterInfo
 AlterInfo (AlterType type, string catalog, string schema, string name, OnEntryNotFound if_not_found)
virtual string GetColumnName () const
AlterEntryData GetAlterEntryData () const
bool IsAddPrimaryKey () const
Public Member Functions inherited from duckdb::ParseInfo
 ParseInfo (ParseInfoType info_type)
template<class TARGET>
TARGET & Cast ()
template<class TARGET>
const TARGET & Cast () const

Static Public Member Functions

static unique_ptr< AlterInfo > Deserialize (Deserializer &deserializer)
Static Public Member Functions inherited from duckdb::AlterInfo
static unique_ptr< ParseInfo > Deserialize (Deserializer &deserializer)
Static Public Member Functions inherited from duckdb::ParseInfo
static unique_ptr< ParseInfo > Deserialize (Deserializer &deserializer)
static string QualifierToString (const string &catalog, const string &schema, const string &name)
static string TypeToString (CatalogType type)

Public Attributes

CatalogType entry_catalog_type
string owner_schema
string owner_name
Public Attributes inherited from duckdb::AlterInfo
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).
Public Attributes inherited from duckdb::ParseInfo
ParseInfoType info_type

Additional Inherited Members

Static Public Attributes inherited from duckdb::AlterInfo
static constexpr const ParseInfoType TYPE = ParseInfoType::ALTER_INFO
Protected Member Functions inherited from duckdb::AlterInfo
 AlterInfo (AlterType type)

Constructor & Destructor Documentation

◆ 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),
338236 std::move(entry_name_p), if_not_found),
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}

Member Function Documentation

◆ GetCatalogType()

CatalogType duckdb::ChangeOwnershipInfo::GetCatalogType ( ) const
overridevirtual

Implements duckdb::AlterInfo.

338244 {
338245 return entry_catalog_type;
338246}

◆ 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,
338250 owner_name, if_not_found);
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 += " ";
338259 if (if_not_found == OnEntryNotFound::RETURN_NULL) {
338260 result += "IF EXISTS";
338261 }
338262 result += QualifierToString(catalog, schema, name);
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()

unique_ptr< AlterInfo > duckdb::ChangeOwnershipInfo::Deserialize ( Deserializer & deserializer)
static
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: