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

Public Member Functions

 SetNotNullInfo (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

◆ SetNotNullInfo() [1/2]

duckdb::SetNotNullInfo::SetNotNullInfo ( AlterEntryData data,
string column_name )
338667 : AlterTableInfo(AlterTableType::SET_NOT_NULL, std::move(data)), column_name(std::move(column_name_p)) {
338668}
string column_name
The column name to alter.
Definition duckdb.hpp:28789

◆ ~SetNotNullInfo()

duckdb::SetNotNullInfo::~SetNotNullInfo ( )
override
338669 {
338670}

◆ SetNotNullInfo() [2/2]

duckdb::SetNotNullInfo::SetNotNullInfo ( )
private
338663 : AlterTableInfo(AlterTableType::SET_NOT_NULL) {
338664}

Member Function Documentation

◆ Copy()

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

Implements duckdb::AlterInfo.

338672 {
338673 return make_uniq_base<AlterInfo, SetNotNullInfo>(GetAlterEntryData(), column_name);
338674}

◆ ToString()

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

Implements duckdb::AlterInfo.

338676 {
338677 string result = "";
338678 result += "ALTER TABLE ";
338679 if (if_not_found == OnEntryNotFound::RETURN_NULL) {
338680 result += " IF EXISTS";
338681 }
338682 result += QualifierToString(catalog, schema, name);
338683 result += " ALTER COLUMN ";
338685 result += " SET NOT NULL";
338686 result += ";";
338687 return result;
338688}
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::SetNotNullInfo::Serialize ( Serializer & serializer) const
overridevirtual

Reimplemented from duckdb::AlterTableInfo.

418543 {
418544 AlterTableInfo::Serialize(serializer);
418545 serializer.WritePropertyWithDefault<string>(400, "column_name", column_name);
418546}

◆ Deserialize()

unique_ptr< AlterTableInfo > duckdb::SetNotNullInfo::Deserialize ( Deserializer & deserializer)
static
418548 {
418549 auto result = duckdb::unique_ptr<SetNotNullInfo>(new SetNotNullInfo());
418550 deserializer.ReadPropertyWithDefault<string>(400, "column_name", result->column_name);
418551 return std::move(result);
418552}

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