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

Public Member Functions

unique_ptr< LoadInfo > 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 filename
string repository
bool repo_is_alias
string version
LoadType load_type
Public Attributes inherited from duckdb::ParseInfo
ParseInfoType info_type

Static Public Attributes

static constexpr const ParseInfoType TYPE = ParseInfoType::LOAD_INFO

Constructor & Destructor Documentation

◆ LoadInfo()

duckdb::LoadInfo::LoadInfo ( )
inline
61182 : ParseInfo(TYPE) {
61183 }

Member Function Documentation

◆ Copy()

unique_ptr< LoadInfo > duckdb::LoadInfo::Copy ( ) const
340109 {
340110 auto result = make_uniq<LoadInfo>();
340111 result->filename = filename;
340112 result->repository = repository;
340113 result->load_type = load_type;
340114 result->repo_is_alias = repo_is_alias;
340115 result->version = version;
340116 return result;
340117}

◆ ToString()

string duckdb::LoadInfo::ToString ( ) const
340132 {
340133 string result = "";
340134 result += LoadInfoToString(load_type);
340135 result += StringUtil::Format(" '%s'", filename);
340136 if (!repository.empty()) {
340137 if (repo_is_alias) {
340138 result += " FROM " + KeywordHelper::WriteOptionallyQuoted(repository);
340139 } else {
340140 result += " FROM " + KeywordHelper::WriteQuoted(repository);
340141 }
340142 }
340143
340144 result += ";";
340145 return result;
340146}
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
static string WriteQuoted(const string &text, char quote='\'')
Writes a string that is quoted.
Definition duckdb.cpp:338028
static string Format(const string fmt_str, ARGS... params)
Format a string using printf semantics.
Definition duckdb.hpp:4002

◆ Serialize()

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

Reimplemented from duckdb::ParseInfo.

418368 {
418369 ParseInfo::Serialize(serializer);
418370 serializer.WritePropertyWithDefault<string>(200, "filename", filename);
418371 serializer.WriteProperty<LoadType>(201, "load_type", load_type);
418372 serializer.WritePropertyWithDefault<string>(202, "repository", repository);
418373 serializer.WritePropertyWithDefault<string>(203, "version", version);
418374 serializer.WritePropertyWithDefault<bool>(204, "repo_is_alias", repo_is_alias);
418375}

◆ Deserialize()

unique_ptr< ParseInfo > duckdb::LoadInfo::Deserialize ( Deserializer & deserializer)
static
418377 {
418378 auto result = duckdb::unique_ptr<LoadInfo>(new LoadInfo());
418379 deserializer.ReadPropertyWithDefault<string>(200, "filename", result->filename);
418380 deserializer.ReadProperty<LoadType>(201, "load_type", result->load_type);
418381 deserializer.ReadPropertyWithDefault<string>(202, "repository", result->repository);
418382 deserializer.ReadPropertyWithDefault<string>(203, "version", result->version);
418383 deserializer.ReadPropertyWithDefault<bool>(204, "repo_is_alias", result->repo_is_alias);
418384 return std::move(result);
418385}

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