Kùzu C++ API
|
Database class is the main class of KùzuDB. It manages all database components. More...
#include <database.h>
Public Member Functions | |
KUZU_API | Database (std::string_view databasePath, SystemConfig systemConfig=SystemConfig()) |
Creates a database object. | |
KUZU_API | ~Database () |
Destructs the database object. | |
KUZU_API void | addTableFunction (std::string name, std::vector< std::unique_ptr< function::Function > > functionSet) |
KUZU_API void | addStandaloneCallFunction (std::string name, std::vector< std::unique_ptr< function::Function > > functionSet) |
KUZU_API void | registerFileSystem (std::unique_ptr< common::FileSystem > fs) |
KUZU_API void | registerStorageExtension (std::string name, std::unique_ptr< storage::StorageExtension > storageExtension) |
KUZU_API void | addExtensionOption (std::string name, common::LogicalTypeID type, common::Value defaultValue) |
KUZU_API catalog::Catalog * | getCatalog () |
ExtensionOption * | getExtensionOption (std::string name) const |
const DBConfig & | getConfig () const |
common::case_insensitive_map_t< std::unique_ptr< storage::StorageExtension > > & | getStorageExtensions () |
uint64_t | getNextQueryID () |
Friends | |
class | EmbeddedShell |
class | ClientContext |
class | Connection |
class | StorageDriver |
class | testing::BaseGraphTest |
class | testing::PrivateGraphTest |
class | transaction::TransactionContext |
struct | extension::ExtensionUtils |
Database class is the main class of KùzuDB. It manages all database components.
|
explicit |
Creates a database object.
databasePath | Database path. If left empty, or :memory: is specified, this will create an in-memory database. |
systemConfig | System configurations (buffer pool size and max num threads). |
KUZU_API kuzu::main::Database::~Database | ( | ) |
Destructs the database object.
KUZU_API void kuzu::main::Database::addExtensionOption | ( | std::string | name, |
common::LogicalTypeID | type, | ||
common::Value | defaultValue ) |
KUZU_API void kuzu::main::Database::addStandaloneCallFunction | ( | std::string | name, |
std::vector< std::unique_ptr< function::Function > > | functionSet ) |
KUZU_API void kuzu::main::Database::addTableFunction | ( | std::string | name, |
std::vector< std::unique_ptr< function::Function > > | functionSet ) |
|
inline |
|
inline |
ExtensionOption * kuzu::main::Database::getExtensionOption | ( | std::string | name | ) | const |
uint64_t kuzu::main::Database::getNextQueryID | ( | ) |
common::case_insensitive_map_t< std::unique_ptr< storage::StorageExtension > > & kuzu::main::Database::getStorageExtensions | ( | ) |
KUZU_API void kuzu::main::Database::registerFileSystem | ( | std::unique_ptr< common::FileSystem > | fs | ) |
KUZU_API void kuzu::main::Database::registerStorageExtension | ( | std::string | name, |
std::unique_ptr< storage::StorageExtension > | storageExtension ) |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |