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

State that is kept during the load phase of a C API extension. More...

Collaboration diagram for duckdb::DuckDBExtensionLoadState:

Public Member Functions

 DuckDBExtensionLoadState (DatabaseInstance &db_p, ExtensionInitResult &init_result_p)
duckdb_extension_info ToCStruct ()
 Convert to an opaque C API pointer.

Static Public Member Functions

static DuckDBExtensionLoadState & Get (duckdb_extension_info info)
 Create a DuckDBExtensionLoadState reference from a C API opaque pointer.

Public Attributes

DatabaseInstance & db
 Ref to the database being loaded.
ExtensionInitResult & init_result
 The init result from initializing the extension.
unique_ptr< DatabaseWrapper > database_data
duckdb_ext_api_v1 api_struct
bool has_error = false
 Error handling.
ErrorData error_data
 The stored error from the loading process.

Detailed Description

State that is kept during the load phase of a C API extension.

Constructor & Destructor Documentation

◆ DuckDBExtensionLoadState()

duckdb::DuckDBExtensionLoadState::DuckDBExtensionLoadState ( DatabaseInstance & db_p,
ExtensionInitResult & init_result_p )
inlineexplicit
279846 : db(db_p), init_result(init_result_p), database_data(nullptr) {
279847 }
unique_ptr< DatabaseWrapper > database_data
Definition duckdb.cpp:279869
DatabaseInstance & db
Ref to the database being loaded.
Definition duckdb.cpp:279862
ExtensionInitResult & init_result
The init result from initializing the extension.
Definition duckdb.cpp:279865

Member Function Documentation

◆ Get()

DuckDBExtensionLoadState & duckdb::DuckDBExtensionLoadState::Get ( duckdb_extension_info info)
inlinestatic

Create a DuckDBExtensionLoadState reference from a C API opaque pointer.

279850 {
279851 D_ASSERT(info);
279852
279853 return *reinterpret_cast<duckdb::DuckDBExtensionLoadState *>(info);
279854 }
Here is the caller graph for this function:

◆ ToCStruct()

duckdb_extension_info duckdb::DuckDBExtensionLoadState::ToCStruct ( )
inline

Convert to an opaque C API pointer.

279857 {
279858 return reinterpret_cast<duckdb_extension_info>(this);
279859 }

Member Data Documentation

◆ database_data

unique_ptr<DatabaseWrapper> duckdb::DuckDBExtensionLoadState::database_data

This is the duckdb_database struct that will be passed to the extension during initialization. Note that the extension does not need to free it.

◆ api_struct

duckdb_ext_api_v1 duckdb::DuckDBExtensionLoadState::api_struct

The function pointer struct passed to the extension. The extension is expected to copy this struct during initialization


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