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::BindingAlias Struct Reference

Public Member Functions

 BindingAlias (string alias)
 BindingAlias (string schema, string alias)
 BindingAlias (string catalog, string schema, string alias)
 BindingAlias (const StandardEntry &entry)
bool IsSet () const
const string & GetAlias () const
const string & GetCatalog () const
const string & GetSchema () const
bool Matches (const BindingAlias &other) const
bool operator== (const BindingAlias &other) const
string ToString () const

Private Attributes

string catalog
string schema
string alias

Constructor & Destructor Documentation

◆ BindingAlias() [1/5]

duckdb::BindingAlias::BindingAlias ( )
374839 {
374840}

◆ BindingAlias() [2/5]

duckdb::BindingAlias::BindingAlias ( string alias)
explicit
374842 : alias(std::move(alias_p)) {
374843}

◆ BindingAlias() [3/5]

duckdb::BindingAlias::BindingAlias ( string schema,
string alias )
374845 : schema(std::move(schema_p)), alias(std::move(alias_p)) {
374846}

◆ BindingAlias() [4/5]

duckdb::BindingAlias::BindingAlias ( string catalog,
string schema,
string alias )
374853 : catalog(std::move(catalog_p)), schema(std::move(schema_p)), alias(std::move(alias_p)) {
374854}

◆ BindingAlias() [5/5]

duckdb::BindingAlias::BindingAlias ( const StandardEntry & entry)
explicit
374849 : catalog(entry.ParentCatalog().GetName()), schema(entry.schema.name), alias(entry.name) {
374850}

Member Function Documentation

◆ IsSet()

bool duckdb::BindingAlias::IsSet ( ) const
374856 {
374857 return !alias.empty();
374858}

◆ GetAlias()

const string & duckdb::BindingAlias::GetAlias ( ) const
374860 {
374861 if (!IsSet()) {
374862 throw InternalException("Calling BindingAlias::GetAlias on a non-set alias");
374863 }
374864 return alias;
374865}

◆ GetCatalog()

const string & duckdb::BindingAlias::GetCatalog ( ) const
inline
13396 {
13397 return catalog;
13398 }

◆ GetSchema()

const string & duckdb::BindingAlias::GetSchema ( ) const
inline
13399 {
13400 return schema;
13401 }

◆ Matches()

bool duckdb::BindingAlias::Matches ( const BindingAlias & other) const
374879 {
374880 // we match based on the specificity of the other entry
374881 // i.e. "tbl" matches "catalog.schema.tbl"
374882 // but "schema2.tbl" does not match "schema.tbl"
374883 if (!other.catalog.empty()) {
374884 if (!StringUtil::CIEquals(catalog, other.catalog)) {
374885 return false;
374886 }
374887 }
374888 if (!other.schema.empty()) {
374889 if (!StringUtil::CIEquals(schema, other.schema)) {
374890 return false;
374891 }
374892 }
374893 return StringUtil::CIEquals(alias, other.alias);
374894}
static DUCKDB_API bool CIEquals(const string &l1, const string &l2)
Case insensitive equals.
Definition duckdb.cpp:109696

◆ operator==()

bool duckdb::BindingAlias::operator== ( const BindingAlias & other) const
374896 {
374897 return StringUtil::CIEquals(catalog, other.catalog) && StringUtil::CIEquals(schema, other.schema) &&
374898 StringUtil::CIEquals(alias, other.alias);
374899}

◆ ToString()

string duckdb::BindingAlias::ToString ( ) const
374867 {
374868 string result;
374869 if (!catalog.empty()) {
374870 result += KeywordHelper::WriteOptionallyQuoted(catalog) + ".";
374871 }
374872 if (!schema.empty()) {
374873 result += KeywordHelper::WriteOptionallyQuoted(schema) + ".";
374874 }
374875 result += KeywordHelper::WriteOptionallyQuoted(alias);
374876 return result;
374877}
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

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