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

Public Member Functions

 AlterForeignKeyInfo (AlterEntryData data, string fk_table, vector< string > pk_columns, vector< string > fk_columns, vector< PhysicalIndex > pk_keys, vector< PhysicalIndex > fk_keys, AlterForeignKeyType type)
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
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< 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 fk_table
vector< string > pk_columns
vector< string > fk_columns
vector< PhysicalIndex > pk_keys
vector< PhysicalIndex > fk_keys
AlterForeignKeyType type
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

◆ AlterForeignKeyInfo() [1/2]

duckdb::AlterForeignKeyInfo::AlterForeignKeyInfo ( AlterEntryData data,
string fk_table,
vector< string > pk_columns,
vector< string > fk_columns,
vector< PhysicalIndex > pk_keys,
vector< PhysicalIndex > fk_keys,
AlterForeignKeyType type )
338729 : AlterTableInfo(AlterTableType::FOREIGN_KEY_CONSTRAINT, std::move(data)), fk_table(std::move(fk_table)),
338730 pk_columns(std::move(pk_columns)), fk_columns(std::move(fk_columns)), pk_keys(std::move(pk_keys)),
338731 fk_keys(std::move(fk_keys)), type(type_p) {
338732}

◆ ~AlterForeignKeyInfo()

duckdb::AlterForeignKeyInfo::~AlterForeignKeyInfo ( )
override
338733 {
338734}

◆ AlterForeignKeyInfo() [2/2]

duckdb::AlterForeignKeyInfo::AlterForeignKeyInfo ( )
private
338723 : AlterTableInfo(AlterTableType::FOREIGN_KEY_CONSTRAINT) {
338724}

Member Function Documentation

◆ Copy()

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

Implements duckdb::AlterInfo.

338736 {
338737 return make_uniq_base<AlterInfo, AlterForeignKeyInfo>(GetAlterEntryData(), fk_table, pk_columns, fk_columns,
338738 pk_keys, fk_keys, type);
338739}

◆ ToString()

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

Implements duckdb::AlterInfo.

338741 {
338742 throw NotImplementedException("NOT PARSABLE CURRENTLY");
338743}

◆ Serialize()

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

Reimplemented from duckdb::ParseInfo.

418198 {
418199 AlterTableInfo::Serialize(serializer);
418200 serializer.WritePropertyWithDefault<string>(400, "fk_table", fk_table);
418201 serializer.WritePropertyWithDefault<vector<string>>(401, "pk_columns", pk_columns);
418202 serializer.WritePropertyWithDefault<vector<string>>(402, "fk_columns", fk_columns);
418203 serializer.WritePropertyWithDefault<vector<PhysicalIndex>>(403, "pk_keys", pk_keys);
418204 serializer.WritePropertyWithDefault<vector<PhysicalIndex>>(404, "fk_keys", fk_keys);
418205 serializer.WriteProperty<AlterForeignKeyType>(405, "alter_fk_type", type);
418206}

◆ Deserialize()

unique_ptr< AlterTableInfo > duckdb::AlterForeignKeyInfo::Deserialize ( Deserializer & deserializer)
static
418208 {
418209 auto result = duckdb::unique_ptr<AlterForeignKeyInfo>(new AlterForeignKeyInfo());
418210 deserializer.ReadPropertyWithDefault<string>(400, "fk_table", result->fk_table);
418211 deserializer.ReadPropertyWithDefault<vector<string>>(401, "pk_columns", result->pk_columns);
418212 deserializer.ReadPropertyWithDefault<vector<string>>(402, "fk_columns", result->fk_columns);
418213 deserializer.ReadPropertyWithDefault<vector<PhysicalIndex>>(403, "pk_keys", result->pk_keys);
418214 deserializer.ReadPropertyWithDefault<vector<PhysicalIndex>>(404, "fk_keys", result->fk_keys);
418215 deserializer.ReadProperty<AlterForeignKeyType>(405, "alter_fk_type", result->type);
418216 return std::move(result);
418217}

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