lmdb++
|
<lmdb++.h> - C++11 wrapper for LMDB. More...
Classes | |
class | bad_dbi_error |
Exception class for MDB_BAD_DBI errors. More... | |
class | corrupted_error |
Exception class for MDB_CORRUPTED errors. More... | |
class | cursor |
Resource class for MDB_cursor* handles. More... | |
class | dbi |
Resource class for MDB_dbi handles. More... | |
class | env |
Resource class for MDB_env* handles. More... | |
class | error |
Base class for LMDB exception conditions. More... | |
class | fatal_error |
Base class for fatal error conditions. More... | |
class | key_exist_error |
Exception class for MDB_KEYEXIST errors. More... | |
class | logic_error |
Base class for logic error conditions. More... | |
class | map_full_error |
Exception class for MDB_MAP_FULL errors. More... | |
class | not_found_error |
Exception class for MDB_NOTFOUND errors. More... | |
class | panic_error |
Exception class for MDB_PANIC errors. More... | |
class | runtime_error |
Base class for runtime error conditions. More... | |
class | txn |
Resource class for MDB_txn* handles. More... | |
class | val |
Wrapper class for MDB_val structures. More... | |
class | version_mismatch_error |
Exception class for MDB_VERSION_MISMATCH errors. More... | |
Typedefs | |
using | mode = mdb_mode_t |
Functions | |
static void | env_create (MDB_env **env) |
static void | env_open (MDB_env *env, const char *path, unsigned int flags, mode mode) |
static void | env_copy (MDB_env *env, const char *path, unsigned int flags) |
static void | env_copy_fd (MDB_env *env, mdb_filehandle_t fd, unsigned int flags) |
static void | env_stat (MDB_env *env, MDB_stat *stat) |
static void | env_info (MDB_env *env, MDB_envinfo *stat) |
static void | env_sync (MDB_env *env, bool force) |
static void | env_close (MDB_env *env) noexcept |
static void | env_set_flags (MDB_env *env, unsigned int flags, bool onoff) |
static void | env_get_flags (MDB_env *env, unsigned int *flags) |
static void | env_get_path (MDB_env *env, const char **path) |
static void | env_get_fd (MDB_env *env, mdb_filehandle_t *fd) |
static void | env_set_mapsize (MDB_env *env, std::size_t size) |
static void | env_set_max_readers (MDB_env *env, unsigned int count) |
static void | env_get_max_readers (MDB_env *env, unsigned int *count) |
static void | env_set_max_dbs (MDB_env *env, MDB_dbi count) |
static unsigned int | env_get_max_keysize (MDB_env *env) |
static void | env_set_userctx (MDB_env *env, void *ctx) |
static void * | env_get_userctx (MDB_env *env) |
static void | txn_begin (MDB_env *env, MDB_txn *parent, unsigned int flags, MDB_txn **txn) |
static MDB_env * | txn_env (MDB_txn *const txn) noexcept |
static void | txn_commit (MDB_txn *txn) |
static void | txn_abort (MDB_txn *txn) noexcept |
static void | txn_reset (MDB_txn *txn) noexcept |
static void | txn_renew (MDB_txn *txn) |
static void | dbi_open (MDB_txn *txn, const char *name, unsigned int flags, MDB_dbi *dbi) |
static void | dbi_stat (MDB_txn *txn, MDB_dbi dbi, MDB_stat *stat) |
static void | dbi_flags (MDB_txn *txn, MDB_dbi dbi, unsigned int *flags) |
static void | dbi_close (MDB_env *env, MDB_dbi dbi) noexcept |
static void | dbi_drop (MDB_txn *txn, MDB_dbi dbi, bool del) |
static void | dbi_set_compare (MDB_txn *txn, MDB_dbi dbi, MDB_cmp_func *cmp) |
static void | dbi_set_dupsort (MDB_txn *txn, MDB_dbi dbi, MDB_cmp_func *cmp) |
static void | dbi_set_relfunc (MDB_txn *txn, MDB_dbi dbi, MDB_rel_func *rel) |
static void | dbi_set_relctx (MDB_txn *txn, MDB_dbi dbi, void *ctx) |
static bool | dbi_get (MDB_txn *txn, MDB_dbi dbi, MDB_val *key, MDB_val *data) |
static bool | dbi_put (MDB_txn *txn, MDB_dbi dbi, MDB_val *key, MDB_val *data, unsigned int flags) |
static bool | dbi_del (MDB_txn *txn, MDB_dbi dbi, MDB_val *key, MDB_val *data) |
static void | cursor_open (MDB_txn *txn, MDB_dbi dbi, MDB_cursor **cursor) |
static void | cursor_close (MDB_cursor *cursor) noexcept |
static void | cursor_renew (MDB_txn *txn, MDB_cursor *cursor) |
static MDB_txn * | cursor_txn (MDB_cursor *cursor) noexcept |
static MDB_dbi | cursor_dbi (MDB_cursor *cursor) noexcept |
static bool | cursor_get (MDB_cursor *cursor, MDB_val *key, MDB_val *data, MDB_cursor_op op) |
static void | cursor_put (MDB_cursor *cursor, MDB_val *key, MDB_val *data, unsigned int flags) |
static void | cursor_del (MDB_cursor *cursor, unsigned int flags) |
static void | cursor_count (MDB_cursor *cursor, std::size_t &count) |
<lmdb++.h> - C++11 wrapper for LMDB.
using lmdb::mode = typedef mdb_mode_t |
|
inlinestaticnoexcept |
|
inlinestatic |
lmdb::error | on failure |
|
inlinestaticnoexcept |
|
inlinestatic |
lmdb::error | on failure |
|
inlinestatic |
lmdb::error | on failure |
|
inlinestatic |
lmdb::error | on failure |
|
inlinestatic |
lmdb::error | on failure |
|
inlinestatic |
lmdb::error | on failure |
|
inlinestaticnoexcept |
|
inlinestaticnoexcept |
|
inlinestatic |
true | if the key/value pair was removed |
false | if the key wasn't found |
|
inlinestatic |
|
inlinestatic |
lmdb::error | on failure |
|
inlinestatic |
true | if the key/value pair was retrieved |
false | if the key wasn't found |
|
inlinestatic |
lmdb::error | on failure |
|
inlinestatic |
true | if the key/value pair was inserted |
false | if the key already existed |
|
inlinestatic |
lmdb::error | on failure |
|
inlinestatic |
lmdb::error | on failure |
|
inlinestatic |
lmdb::error | on failure |
|
inlinestatic |
lmdb::error | on failure |
|
inlinestatic |
lmdb::error | on failure |
|
inlinestaticnoexcept |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
lmdb::error | on failure |
|
inlinestatic |
lmdb::error | on failure |
|
inlinestatic |
lmdb::error | on failure |
|
inlinestatic |
|
inlinestatic |
lmdb::error | on failure |
|
inlinestatic |
lmdb::error | on failure |
|
inlinestatic |
|
inlinestatic |
lmdb::error | on failure |
|
inlinestatic |
lmdb::error | on failure |
|
inlinestatic |
lmdb::error | on failure |
|
inlinestatic |
lmdb::error | on failure |
|
inlinestatic |
lmdb::error | on failure |
|
inlinestatic |
lmdb::error | on failure |
|
inlinestatic |
lmdb::error | on failure |
|
inlinestatic |
lmdb::error | on failure |
|
inlinestatic |
lmdb::error | on failure |
|
inlinestaticnoexcept |
|
inlinestatic |
lmdb::error | on failure |
|
inlinestatic |
lmdb::error | on failure |
|
inlinestaticnoexcept |
|
inlinestatic |
lmdb::error | on failure |
|
inlinestaticnoexcept |