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

#include <duckdb.hpp>

Collaboration diagram for duckdb::LogicalDependency:

Public Member Functions

 LogicalDependency (CatalogEntry &entry)
 LogicalDependency (optional_ptr< Catalog > catalog, CatalogEntryInfo entry, string catalog_str)
bool operator== (const LogicalDependency &other) const
void Serialize (Serializer &serializer) const

Static Public Member Functions

static LogicalDependency Deserialize (Deserializer &deserializer)

Public Attributes

CatalogEntryInfo entry
string catalog

Detailed Description

A minimal representation of a CreateInfo / CatalogEntry enough to look up the entry inside SchemaCatalogEntry::GetEntry

Constructor & Destructor Documentation

◆ LogicalDependency() [1/3]

duckdb::LogicalDependency::LogicalDependency ( CatalogEntry & entry)
explicit
25406 {
25407 catalog = INVALID_CATALOG;
25408 if (entry.type == CatalogType::DEPENDENCY_ENTRY) {
25409 auto &dependency_entry = entry.Cast<DependencyEntry>();
25410
25411 this->entry = dependency_entry.EntryInfo();
25412 } else {
25413 this->entry.schema = GetSchema(entry);
25414 this->entry.name = entry.name;
25415 this->entry.type = entry.type;
25416 catalog = entry.ParentCatalog().GetName();
25417 }
25418}

◆ LogicalDependency() [2/3]

duckdb::LogicalDependency::LogicalDependency ( )
25396 : entry(), catalog() {
25397}

◆ LogicalDependency() [3/3]

duckdb::LogicalDependency::LogicalDependency ( optional_ptr< Catalog > catalog,
CatalogEntryInfo entry,
string catalog_str )
25421 : entry(std::move(entry_p)), catalog(std::move(catalog_str)) {
25422 if (catalog_p) {
25423 catalog = catalog_p->GetName();
25424 }
25425}

Member Function Documentation

◆ operator==()

bool duckdb::LogicalDependency::operator== ( const LogicalDependency & other) const
25427 {
25428 return other.entry.name == entry.name && other.entry.schema == entry.schema && other.entry.type == entry.type;
25429}

◆ Serialize()

void duckdb::LogicalDependency::Serialize ( Serializer & serializer) const
415891 {
415892 serializer.WriteProperty<CatalogEntryInfo>(100, "entry", entry);
415893 serializer.WritePropertyWithDefault<string>(101, "catalog", catalog);
415894}

◆ Deserialize()

LogicalDependency duckdb::LogicalDependency::Deserialize ( Deserializer & deserializer)
static
415896 {
415897 auto entry = deserializer.ReadProperty<CatalogEntryInfo>(100, "entry");
415898 auto catalog = deserializer.ReadPropertyWithDefault<string>(101, "catalog");
415899 LogicalDependency result(deserializer.TryGet<Catalog>(), entry, std::move(catalog));
415900 return result;
415901}

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