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

Public Member Functions

unique_ptr< DetachInfo > Copy () const
string ToString () const
void Serialize (Serializer &serializer) const override
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< 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 name
 The alias of the attached database.
OnEntryNotFound if_not_found
 Whether to throw an exception if alias is not found.
Public Attributes inherited from duckdb::ParseInfo
ParseInfoType info_type

Static Public Attributes

static constexpr const ParseInfoType TYPE = ParseInfoType::DETACH_INFO

Constructor & Destructor Documentation

◆ DetachInfo()

duckdb::DetachInfo::DetachInfo ( )
340000 : ParseInfo(TYPE) {
340001}

Member Function Documentation

◆ Copy()

unique_ptr< DetachInfo > duckdb::DetachInfo::Copy ( ) const
340003 {
340004 auto result = make_uniq<DetachInfo>();
340005 result->name = name;
340006 result->if_not_found = if_not_found;
340007 return result;
340008}
OnEntryNotFound if_not_found
Whether to throw an exception if alias is not found.
Definition duckdb.cpp:200182
string name
The alias of the attached database.
Definition duckdb.cpp:200180

◆ ToString()

string duckdb::DetachInfo::ToString ( ) const
340010 {
340011 string result = "";
340012 result += "DETACH DATABASE";
340013 if (if_not_found == OnEntryNotFound::RETURN_NULL) {
340014 result += " IF EXISTS";
340015 }
340017 result += ";";
340018 return result;
340019}
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

◆ Serialize()

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

Reimplemented from duckdb::ParseInfo.

418319 {
418320 ParseInfo::Serialize(serializer);
418321 serializer.WritePropertyWithDefault<string>(200, "name", name);
418322 serializer.WriteProperty<OnEntryNotFound>(201, "if_not_found", if_not_found);
418323}

◆ Deserialize()

unique_ptr< ParseInfo > duckdb::DetachInfo::Deserialize ( Deserializer & deserializer)
static
418325 {
418326 auto result = duckdb::unique_ptr<DetachInfo>(new DetachInfo());
418327 deserializer.ReadPropertyWithDefault<string>(200, "name", result->name);
418328 deserializer.ReadProperty<OnEntryNotFound>(201, "if_not_found", result->if_not_found);
418329 return std::move(result);
418330}

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