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::SetCommentInfo Struct Reference
Inheritance diagram for duckdb::SetCommentInfo:
Collaboration diagram for duckdb::SetCommentInfo:

Public Member Functions

 SetCommentInfo (CatalogType entry_catalog_type, string entry_catalog, string entry_schema, string entry_name, Value new_comment_value_p, 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
Value comment_value
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

◆ SetCommentInfo() [1/2]

duckdb::SetCommentInfo::SetCommentInfo ( CatalogType entry_catalog_type,
string entry_catalog,
string entry_schema,
string entry_name,
Value new_comment_value_p,
OnEntryNotFound if_not_found )
338274 : AlterInfo(AlterType::SET_COMMENT, std::move(entry_catalog_p), std::move(entry_schema_p), std::move(entry_name_p),
338275 if_not_found),
338276 entry_catalog_type(entry_catalog_type), comment_value(std::move(new_comment_value_p)) {
338277}
OnEntryNotFound if_not_found
if exists
Definition duckdb.hpp:28310

◆ SetCommentInfo() [2/2]

duckdb::SetCommentInfo::SetCommentInfo ( )
explicit
338302 : AlterInfo(AlterType::SET_COMMENT) {
338303}

Member Function Documentation

◆ GetCatalogType()

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

Implements duckdb::AlterInfo.

338279 {
338280 return entry_catalog_type;
338281}

◆ Copy()

unique_ptr< AlterInfo > duckdb::SetCommentInfo::Copy ( ) const
overridevirtual

Implements duckdb::AlterInfo.

338283 {
338284 return make_uniq_base<AlterInfo, SetCommentInfo>(entry_catalog_type, catalog, schema, name, comment_value,
338285 if_not_found);
338286}
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::SetCommentInfo::ToString ( ) const
overridevirtual

Implements duckdb::AlterInfo.

338288 {
338289 string result = "";
338290
338291 result += "COMMENT ON ";
338292 result += ParseInfo::TypeToString(entry_catalog_type);
338293 result += " ";
338294 result += QualifierToString(catalog, schema, name);
338295 result += " IS ";
338296 result += comment_value.ToSQLString();
338297
338298 result += ";";
338299 return result;
338300}

◆ Serialize()

void duckdb::SetCommentInfo::Serialize ( Serializer & serializer) const
overridevirtual

Reimplemented from duckdb::AlterInfo.

418517 {
418518 AlterInfo::Serialize(serializer);
418519 serializer.WriteProperty<CatalogType>(300, "entry_catalog_type", entry_catalog_type);
418520 serializer.WriteProperty<Value>(301, "comment_value", comment_value);
418521}

◆ Deserialize()

unique_ptr< AlterInfo > duckdb::SetCommentInfo::Deserialize ( Deserializer & deserializer)
static
418523 {
418524 auto result = duckdb::unique_ptr<SetCommentInfo>(new SetCommentInfo());
418525 deserializer.ReadProperty<CatalogType>(300, "entry_catalog_type", result->entry_catalog_type);
418526 deserializer.ReadProperty<Value>(301, "comment_value", result->comment_value);
418527 return std::move(result);
418528}

The documentation for this struct was generated from the following files: