lmdb++
Classes | Namespaces | Typedefs | Functions
lmdb++.h File Reference
#include <lmdb.h>
#include <cstddef>
#include <cstdio>
#include <cstring>
#include <stdexcept>
#include <string>
#include <type_traits>

Go to the source code of this file.

Classes

class  lmdb::error
 Base class for LMDB exception conditions. More...
 
class  lmdb::logic_error
 Base class for logic error conditions. More...
 
class  lmdb::fatal_error
 Base class for fatal error conditions. More...
 
class  lmdb::runtime_error
 Base class for runtime error conditions. More...
 
class  lmdb::key_exist_error
 Exception class for MDB_KEYEXIST errors. More...
 
class  lmdb::not_found_error
 Exception class for MDB_NOTFOUND errors. More...
 
class  lmdb::corrupted_error
 Exception class for MDB_CORRUPTED errors. More...
 
class  lmdb::panic_error
 Exception class for MDB_PANIC errors. More...
 
class  lmdb::version_mismatch_error
 Exception class for MDB_VERSION_MISMATCH errors. More...
 
class  lmdb::map_full_error
 Exception class for MDB_MAP_FULL errors. More...
 
class  lmdb::bad_dbi_error
 Exception class for MDB_BAD_DBI errors. More...
 
class  lmdb::val
 Wrapper class for MDB_val structures. More...
 
class  lmdb::env
 Resource class for MDB_env* handles. More...
 
class  lmdb::txn
 Resource class for MDB_txn* handles. More...
 
class  lmdb::dbi
 Resource class for MDB_dbi handles. More...
 
class  lmdb::cursor
 Resource class for MDB_cursor* handles. More...
 

Namespaces

 lmdb
 <lmdb++.h> - C++11 wrapper for LMDB.
 

Typedefs

using lmdb::mode = mdb_mode_t
 

Functions

static void lmdb::env_create (MDB_env **env)
 
static void lmdb::env_open (MDB_env *env, const char *path, unsigned int flags, mode mode)
 
static void lmdb::env_copy (MDB_env *env, const char *path, unsigned int flags)
 
static void lmdb::env_copy_fd (MDB_env *env, mdb_filehandle_t fd, unsigned int flags)
 
static void lmdb::env_stat (MDB_env *env, MDB_stat *stat)
 
static void lmdb::env_info (MDB_env *env, MDB_envinfo *stat)
 
static void lmdb::env_sync (MDB_env *env, bool force)
 
static void lmdb::env_close (MDB_env *env) noexcept
 
static void lmdb::env_set_flags (MDB_env *env, unsigned int flags, bool onoff)
 
static void lmdb::env_get_flags (MDB_env *env, unsigned int *flags)
 
static void lmdb::env_get_path (MDB_env *env, const char **path)
 
static void lmdb::env_get_fd (MDB_env *env, mdb_filehandle_t *fd)
 
static void lmdb::env_set_mapsize (MDB_env *env, std::size_t size)
 
static void lmdb::env_set_max_readers (MDB_env *env, unsigned int count)
 
static void lmdb::env_get_max_readers (MDB_env *env, unsigned int *count)
 
static void lmdb::env_set_max_dbs (MDB_env *env, MDB_dbi count)
 
static unsigned int lmdb::env_get_max_keysize (MDB_env *env)
 
static void lmdb::env_set_userctx (MDB_env *env, void *ctx)
 
static void * lmdb::env_get_userctx (MDB_env *env)
 
static void lmdb::txn_begin (MDB_env *env, MDB_txn *parent, unsigned int flags, MDB_txn **txn)
 
static MDB_env * lmdb::txn_env (MDB_txn *const txn) noexcept
 
static void lmdb::txn_commit (MDB_txn *txn)
 
static void lmdb::txn_abort (MDB_txn *txn) noexcept
 
static void lmdb::txn_reset (MDB_txn *txn) noexcept
 
static void lmdb::txn_renew (MDB_txn *txn)
 
static void lmdb::dbi_open (MDB_txn *txn, const char *name, unsigned int flags, MDB_dbi *dbi)
 
static void lmdb::dbi_stat (MDB_txn *txn, MDB_dbi dbi, MDB_stat *stat)
 
static void lmdb::dbi_flags (MDB_txn *txn, MDB_dbi dbi, unsigned int *flags)
 
static void lmdb::dbi_close (MDB_env *env, MDB_dbi dbi) noexcept
 
static void lmdb::dbi_drop (MDB_txn *txn, MDB_dbi dbi, bool del)
 
static void lmdb::dbi_set_compare (MDB_txn *txn, MDB_dbi dbi, MDB_cmp_func *cmp)
 
static void lmdb::dbi_set_dupsort (MDB_txn *txn, MDB_dbi dbi, MDB_cmp_func *cmp)
 
static void lmdb::dbi_set_relfunc (MDB_txn *txn, MDB_dbi dbi, MDB_rel_func *rel)
 
static void lmdb::dbi_set_relctx (MDB_txn *txn, MDB_dbi dbi, void *ctx)
 
static bool lmdb::dbi_get (MDB_txn *txn, MDB_dbi dbi, MDB_val *key, MDB_val *data)
 
static bool lmdb::dbi_put (MDB_txn *txn, MDB_dbi dbi, MDB_val *key, MDB_val *data, unsigned int flags)
 
static bool lmdb::dbi_del (MDB_txn *txn, MDB_dbi dbi, MDB_val *key, MDB_val *data)
 
static void lmdb::cursor_open (MDB_txn *txn, MDB_dbi dbi, MDB_cursor **cursor)
 
static void lmdb::cursor_close (MDB_cursor *cursor) noexcept
 
static void lmdb::cursor_renew (MDB_txn *txn, MDB_cursor *cursor)
 
static MDB_txn * lmdb::cursor_txn (MDB_cursor *cursor) noexcept
 
static MDB_dbi lmdb::cursor_dbi (MDB_cursor *cursor) noexcept
 
static bool lmdb::cursor_get (MDB_cursor *cursor, MDB_val *key, MDB_val *data, MDB_cursor_op op)
 
static void lmdb::cursor_put (MDB_cursor *cursor, MDB_val *key, MDB_val *data, unsigned int flags)
 
static void lmdb::cursor_del (MDB_cursor *cursor, unsigned int flags)
 
static void lmdb::cursor_count (MDB_cursor *cursor, std::size_t &count)