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

Public Member Functions

 SetTableOptionsInfo (AlterEntryData data, case_insensitive_map_t< unique_ptr< ParsedExpression > > table_options)
unique_ptr< AlterInfo > Copy () const override
string ToString () const override
void Serialize (Serializer &serializer) const override
Public Member Functions inherited from duckdb::AlterTableInfo
 AlterTableInfo (AlterTableType type, AlterEntryData data)
CatalogType GetCatalogType () 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< AlterTableInfo > Deserialize (Deserializer &deserializer)
Static Public Member Functions inherited from duckdb::AlterTableInfo
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

case_insensitive_map_t< unique_ptr< ParsedExpression > > table_options
Public Attributes inherited from duckdb::AlterTableInfo
AlterTableType alter_table_type
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::AlterTableInfo
 AlterTableInfo (AlterTableType type)
Protected Member Functions inherited from duckdb::AlterInfo
 AlterInfo (AlterType type)

Constructor & Destructor Documentation

◆ SetTableOptionsInfo() [1/2]

duckdb::SetTableOptionsInfo::SetTableOptionsInfo ( AlterEntryData data,
case_insensitive_map_t< unique_ptr< ParsedExpression > > table_options )
338903 : AlterTableInfo(AlterTableType::SET_TABLE_OPTIONS, std::move(data)), table_options(std::move(table_options)) {
338904}

◆ ~SetTableOptionsInfo()

duckdb::SetTableOptionsInfo::~SetTableOptionsInfo ( )
override
338906 {
338907}

◆ SetTableOptionsInfo() [2/2]

duckdb::SetTableOptionsInfo::SetTableOptionsInfo ( )
private
338898 : AlterTableInfo(AlterTableType::SET_TABLE_OPTIONS) {
338899}

Member Function Documentation

◆ Copy()

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

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 ";
338919 result += QualifierToString(catalog, schema, name);
338920 result += " SET (";
338921 idx_t i = 0;
338922 for (auto &entry : table_options) {
338923 if (i > 0) {
338924 result += ", ";
338925 }
338926 result += KeywordHelper::WriteQuoted(entry.first, '\'') + "=" + entry.second->ToString();
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()

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