The database object. This object holds the catalog and all the database-specific meta information.
More...
#include <duckdb.hpp>
|
|
shared_ptr< DatabaseInstance > | instance |
| | Reference to the actual database instance.
|
The database object. This object holds the catalog and all the database-specific meta information.
◆ DuckDB() [1/3]
| duckdb::DuckDB::DuckDB |
( |
const char * | path = nullptr, |
|
|
DBConfig * | config = nullptr ) |
|
explicit |
277068 :
instance(make_shared_ptr<DatabaseInstance>()) {
277069 instance->Initialize(path, new_config);
277070 if (
instance->config.options.load_extensions) {
277071 ExtensionHelper::LoadAllExtensions(*this);
277072 }
277073 instance->db_manager->FinalizeStartup();
277074}
shared_ptr< DatabaseInstance > instance
Reference to the actual database instance.
Definition duckdb.hpp:54248
shared_ptr< DatabaseInstance > instance
Reference to the actual database instance.
Definition duckdb.hpp:54248
◆ DuckDB() [2/3]
| duckdb::DuckDB::DuckDB |
( |
const string & | path, |
|
|
DBConfig * | config = nullptr ) |
|
explicit |
277076 : DuckDB(path.c_str(), config) {
277077}
◆ DuckDB() [3/3]
| duckdb::DuckDB::DuckDB |
( |
DatabaseInstance & | instance | ) |
|
|
explicit |
277079 :
instance(instance_p.shared_from_this()) {
277080}
◆ ~DuckDB()
| duckdb::DuckDB::~DuckDB |
( |
| ) |
|
◆ LoadStaticExtension()
template<class T>
| void duckdb::DuckDB::LoadStaticExtension |
( |
| ) |
|
|
inline |
54253 {
54254 T extension;
54255 auto &manager = ExtensionManager::Get(*
instance);
54256 auto load_info = manager.BeginLoad(extension.Name());
54257 if (!load_info) {
54258
54259 return;
54260 }
54261
54262
54263 ExtensionLoader loader(*load_info);
54264
54265
54266 extension.Load(loader);
54267
54268
54269 loader.FinalizeLoad();
54270
54271 ExtensionInstallInfo install_info;
54272 install_info.mode = ExtensionInstallMode::STATICALLY_LINKED;
54273 install_info.version = extension.Version();
54274 load_info->FinishLoad(install_info);
54275 }
◆ GetFileSystem()
| FileSystem & duckdb::DuckDB::GetFileSystem |
( |
| ) |
|
277137 {
277138 return instance->GetFileSystem();
277139}
◆ NumberOfThreads()
| idx_t duckdb::DuckDB::NumberOfThreads |
( |
| ) |
|
277246 {
277247 return instance->NumberOfThreads();
277248}
◆ SourceID()
| const char * duckdb::DuckDB::SourceID |
( |
| ) |
|
|
static |
252272 {
252273 return DUCKDB_SOURCE_ID;
252274}
◆ LibraryVersion()
| const char * duckdb::DuckDB::LibraryVersion |
( |
| ) |
|
|
static |
252276 {
252277 return DUCKDB_VERSION;
252278}
◆ ReleaseCodename()
| const char * duckdb::DuckDB::ReleaseCodename |
( |
| ) |
|
|
static |
252280 {
252281
252283 return "Development Version";
252284 }
252286 return "Histrionicus";
252287 }
252289 return "Ossivalis";
252290 }
252292 return "Andium";
252293 }
252295 return "Variegata";
252296 }
252297
252298
252299
252300 return "Unknown Version";
252301}
static DUCKDB_API bool Contains(const string &haystack, const string &needle)
Returns true if the needle string exists in the haystack.
Definition duckdb.cpp:109323
static DUCKDB_API bool StartsWith(string str, string prefix)
Returns true if the target string starts with the given prefix.
Definition duckdb.cpp:109377
◆ StandardVectorSize()
| idx_t duckdb::DuckDB::StandardVectorSize |
( |
| ) |
|
|
static |
252268 {
252269 return STANDARD_VECTOR_SIZE;
252270}
◆ Platform()
| string duckdb::DuckDB::Platform |
( |
| ) |
|
|
static |
252303 {
252304 return DuckDBPlatform();
252305}
◆ ExtensionIsLoaded()
| bool duckdb::DuckDB::ExtensionIsLoaded |
( |
const string & | name | ) |
|
277254 {
277255 return instance->ExtensionIsLoaded(name);
277256}
The documentation for this class was generated from the following files: