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::DefaultSchemaGenerator Class Reference
Inheritance diagram for duckdb::DefaultSchemaGenerator:
Collaboration diagram for duckdb::DefaultSchemaGenerator:

Public Member Functions

 DefaultSchemaGenerator (Catalog &catalog)
unique_ptr< CatalogEntry > CreateDefaultEntry (CatalogTransaction transaction, const string &entry_name) override
vector< string > GetDefaultEntries () override
 Get a list of all default entries in the generator.
Public Member Functions inherited from duckdb::DefaultGenerator
 DefaultGenerator (Catalog &catalog)
virtual unique_ptr< CatalogEntry > CreateDefaultEntry (ClientContext &context, const string &entry_name)
 Creates a default entry with the specified name, or returns nullptr if no such entry can be generated.
virtual bool LockDuringCreate () const

Static Public Member Functions

static bool IsDefaultSchema (const string &input_schema)

Additional Inherited Members

Public Attributes inherited from duckdb::DefaultGenerator
Catalog & catalog
atomic< bool > created_all_entries

Constructor & Destructor Documentation

◆ DefaultSchemaGenerator()

duckdb::DefaultSchemaGenerator::DefaultSchemaGenerator ( Catalog & catalog)
explicit
24315 : DefaultGenerator(catalog) {
24316}

Member Function Documentation

◆ CreateDefaultEntry()

unique_ptr< CatalogEntry > duckdb::DefaultSchemaGenerator::CreateDefaultEntry ( CatalogTransaction transaction,
const string & entry_name )
overridevirtual

Reimplemented from duckdb::DefaultGenerator.

24319 {
24320 if (IsDefaultSchema(entry_name)) {
24321 CreateSchemaInfo info;
24322 info.schema = StringUtil::Lower(entry_name);
24323 info.internal = true;
24324 return make_uniq_base<CatalogEntry, DuckSchemaEntry>(catalog, info);
24325 }
24326 return nullptr;
24327}
static DUCKDB_API string Lower(const string &str)
Convert a string to lowercase.
Definition duckdb.cpp:109630

◆ GetDefaultEntries()

vector< string > duckdb::DefaultSchemaGenerator::GetDefaultEntries ( )
overridevirtual

Get a list of all default entries in the generator.

Implements duckdb::DefaultGenerator.

24329 {
24330 vector<string> result;
24331 for (idx_t index = 0; internal_schemas[index].name != nullptr; index++) {
24332 result.emplace_back(internal_schemas[index].name);
24333 }
24334 return result;
24335}
index
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237

◆ IsDefaultSchema()

bool duckdb::DefaultSchemaGenerator::IsDefaultSchema ( const string & input_schema)
static
24305 {
24306 auto schema = StringUtil::Lower(input_schema);
24307 for (idx_t index = 0; internal_schemas[index].name != nullptr; index++) {
24308 if (internal_schemas[index].name == schema) {
24309 return true;
24310 }
24311 }
24312 return false;
24313}

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