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

Public Member Functions

 DropNotNullInfo (AlterEntryData data, string column_name)
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.
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

◆ DropNotNullInfo() [1/2]

duckdb::DropNotNullInfo::DropNotNullInfo ( AlterEntryData data,
string column_name )
338697 : AlterTableInfo(AlterTableType::DROP_NOT_NULL, std::move(data)), column_name(std::move(column_name_p)) {
338698}
string column_name
The column name to alter.
Definition duckdb.hpp:28809

◆ ~DropNotNullInfo()

duckdb::DropNotNullInfo::~DropNotNullInfo ( )
override
338699 {
338700}

◆ DropNotNullInfo() [2/2]

duckdb::DropNotNullInfo::DropNotNullInfo ( )
private
338693 : AlterTableInfo(AlterTableType::DROP_NOT_NULL) {
338694}

Member Function Documentation

◆ Copy()

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

Implements duckdb::AlterInfo.

338702 {
338703 return make_uniq_base<AlterInfo, DropNotNullInfo>(GetAlterEntryData(), column_name);
338704}

◆ ToString()

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

Implements duckdb::AlterInfo.

338706 {
338707 string result = "";
338708 result += "ALTER TABLE ";
338709 if (if_not_found == OnEntryNotFound::RETURN_NULL) {
338710 result += " IF EXISTS";
338711 }
338712 result += QualifierToString(catalog, schema, name);
338713 result += " ALTER COLUMN ";
338715 result += " DROP NOT NULL";
338716 result += ";";
338717 return result;
338718}
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::DropNotNullInfo::Serialize ( Serializer & serializer) const
overridevirtual

Reimplemented from duckdb::AlterTableInfo.

418357 {
418358 AlterTableInfo::Serialize(serializer);
418359 serializer.WritePropertyWithDefault<string>(400, "column_name", column_name);
418360}

◆ Deserialize()

unique_ptr< AlterTableInfo > duckdb::DropNotNullInfo::Deserialize ( Deserializer & deserializer)
static
418362 {
418363 auto result = duckdb::unique_ptr<DropNotNullInfo>(new DropNotNullInfo());
418364 deserializer.ReadPropertyWithDefault<string>(400, "column_name", result->column_name);
418365 return std::move(result);
418366}

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