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 | 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, bool isConfidential=false) |
KUZU_API catalog::Catalog * | getCatalog () |
const DBConfig & | getConfig () const |
std::vector< 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, | ||
bool | isConfidential = false ) |
|
inline |
|
inline |
uint64_t kuzu::main::Database::getNextQueryID | ( | ) |
std::vector< 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 |