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

Public Member Functions

 SetDefaultInfo (AlterEntryData data, string column_name, unique_ptr< ParsedExpression > new_default)
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

string column_name
 The column name to alter.
unique_ptr< ParsedExpression > expression
 The expression used for data conversion.
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

◆ SetDefaultInfo() [1/2]

duckdb::SetDefaultInfo::SetDefaultInfo ( AlterEntryData data,
string column_name,
unique_ptr< ParsedExpression > new_default )
338630 : AlterTableInfo(AlterTableType::SET_DEFAULT, std::move(data)), column_name(std::move(column_name_p)),
338631 expression(std::move(new_default)) {
338632}
string column_name
The column name to alter.
Definition duckdb.hpp:28742
unique_ptr< ParsedExpression > expression
The expression used for data conversion.
Definition duckdb.hpp:28744

◆ ~SetDefaultInfo()

duckdb::SetDefaultInfo::~SetDefaultInfo ( )
override
338633 {
338634}

◆ SetDefaultInfo() [2/2]

duckdb::SetDefaultInfo::SetDefaultInfo ( )
private
338626 : AlterTableInfo(AlterTableType::SET_DEFAULT) {
338627}

Member Function Documentation

◆ Copy()

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

Implements duckdb::AlterInfo.

338636 {
338637 return make_uniq_base<AlterInfo, SetDefaultInfo>(GetAlterEntryData(), column_name,
338638 expression ? expression->Copy() : nullptr);
338639}

◆ ToString()

string duckdb::SetDefaultInfo::ToString ( ) const
overridevirtual

Implements duckdb::AlterInfo.

338641 {
338642 string result = "";
338643 result += "ALTER TABLE ";
338644 if (if_not_found == OnEntryNotFound::RETURN_NULL) {
338645 result += " IF EXISTS";
338646 }
338647 result += QualifierToString(catalog, schema, name);
338648 result += " ALTER COLUMN ";
338650 if (expression) {
338651 result += " SET DEFAULT ";
338652 result += expression->ToString();
338653 } else {
338654 result += " DROP DEFAULT";
338655 }
338656 result += ";";
338657 return result;
338658}
static string WriteOptionallyQuoted(const string &text, char quote='"', bool allow_caps = true, KeywordCategory category = KeywordCategory::KEYWORD_NONE)
Writes a string that is optionally quoted + escaped so it can be used as an identifier.
Definition duckdb.cpp:338034
string catalog
Catalog name to alter.
Definition duckdb.hpp:28312
OnEntryNotFound if_not_found
if exists
Definition duckdb.hpp:28310
string name
Entry name to alter.
Definition duckdb.hpp:28316
string schema
Schema name to alter.
Definition duckdb.hpp:28314

◆ Serialize()

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

Reimplemented from duckdb::AlterTableInfo.

418530 {
418531 AlterTableInfo::Serialize(serializer);
418532 serializer.WritePropertyWithDefault<string>(400, "column_name", column_name);
418533 serializer.WritePropertyWithDefault<unique_ptr<ParsedExpression>>(401, "expression", expression);
418534}

◆ Deserialize()

unique_ptr< AlterTableInfo > duckdb::SetDefaultInfo::Deserialize ( Deserializer & deserializer)
static
418536 {
418537 auto result = duckdb::unique_ptr<SetDefaultInfo>(new SetDefaultInfo());
418538 deserializer.ReadPropertyWithDefault<string>(400, "column_name", result->column_name);
418539 deserializer.ReadPropertyWithDefault<unique_ptr<ParsedExpression>>(401, "expression", result->expression);
418540 return std::move(result);
418541}

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