|
| char * | mdb_version (int *major, int *minor, int *patch) |
| | Return the LMDB library version information. More...
|
| |
| char * | mdb_strerror (int err) |
| | Return a string describing a given error code. More...
|
| |
| int | mdb_env_create (MDB_env **env) |
| | Create an LMDB environment handle. More...
|
| |
| int | mdb_env_open (MDB_env *env, const char *path, unsigned int flags, mdb_mode_t mode) |
| | Open an environment handle. More...
|
| |
| int | mdb_env_copy (MDB_env *env, const char *path) |
| | Copy an LMDB environment to the specified path. More...
|
| |
| int | mdb_env_copyfd (MDB_env *env, mdb_filehandle_t fd) |
| | Copy an LMDB environment to the specified file descriptor. More...
|
| |
| int | mdb_env_copy2 (MDB_env *env, const char *path, unsigned int flags) |
| | Copy an LMDB environment to the specified path, with options. More...
|
| |
| int | mdb_env_copyfd2 (MDB_env *env, mdb_filehandle_t fd, unsigned int flags) |
| | Copy an LMDB environment to the specified file descriptor, with options. More...
|
| |
| int | mdb_env_stat (MDB_env *env, MDB_stat *stat) |
| | Return statistics about the LMDB environment. More...
|
| |
| int | mdb_env_info (MDB_env *env, MDB_envinfo *stat) |
| | Return information about the LMDB environment. More...
|
| |
| int | mdb_env_sync (MDB_env *env, int force) |
| | Flush the data buffers to disk. More...
|
| |
| void | mdb_env_close (MDB_env *env) |
| | Close the environment and release the memory map. More...
|
| |
| int | mdb_env_set_flags (MDB_env *env, unsigned int flags, int onoff) |
| | Set environment flags. More...
|
| |
| int | mdb_env_get_flags (MDB_env *env, unsigned int *flags) |
| | Get environment flags. More...
|
| |
| int | mdb_env_get_path (MDB_env *env, const char **path) |
| | Return the path that was used in mdb_env_open(). More...
|
| |
| int | mdb_env_get_fd (MDB_env *env, mdb_filehandle_t *fd) |
| | Return the filedescriptor for the given environment. More...
|
| |
| int | mdb_env_set_mapsize (MDB_env *env, mdb_size_t size) |
| | Set the size of the memory map to use for this environment. More...
|
| |
| int | mdb_env_set_maxreaders (MDB_env *env, unsigned int readers) |
| | Set the maximum number of threads/reader slots for the environment. More...
|
| |
| int | mdb_env_get_maxreaders (MDB_env *env, unsigned int *readers) |
| | Get the maximum number of threads/reader slots for the environment. More...
|
| |
| int | mdb_env_set_maxdbs (MDB_env *env, MDB_dbi dbs) |
| | Set the maximum number of named databases for the environment. More...
|
| |
| int | mdb_env_get_maxkeysize (MDB_env *env) |
| | Get the maximum size of keys and MDB_DUPSORT data we can write. More...
|
| |
| int | mdb_env_set_userctx (MDB_env *env, void *ctx) |
| | Set application information associated with the MDB_env. More...
|
| |
| void * | mdb_env_get_userctx (MDB_env *env) |
| | Get the application information associated with the MDB_env. More...
|
| |
| int | mdb_env_set_assert (MDB_env *env, MDB_assert_func *func) |
| |
| int | mdb_txn_begin (MDB_env *env, MDB_txn *parent, unsigned int flags, MDB_txn **txn) |
| | Create a transaction for use with the environment. More...
|
| |
| MDB_env * | mdb_txn_env (MDB_txn *txn) |
| | Returns the transaction's MDB_env. More...
|
| |
| mdb_size_t | mdb_txn_id (MDB_txn *txn) |
| | Return the transaction's ID. More...
|
| |
| int | mdb_txn_commit (MDB_txn *txn) |
| | Commit all the operations of a transaction into the database. More...
|
| |
| void | mdb_txn_abort (MDB_txn *txn) |
| | Abandon all the operations of the transaction instead of saving them. More...
|
| |
| void | mdb_txn_reset (MDB_txn *txn) |
| | Reset a read-only transaction. More...
|
| |
| int | mdb_txn_renew (MDB_txn *txn) |
| | Renew a read-only transaction. More...
|
| |
| int | mdb_dbi_open (MDB_txn *txn, const char *name, unsigned int flags, MDB_dbi *dbi) |
| | Open a database in the environment. More...
|
| |
| int | mdb_stat (MDB_txn *txn, MDB_dbi dbi, MDB_stat *stat) |
| | Retrieve statistics for a database. More...
|
| |
| int | mdb_dbi_flags (MDB_txn *txn, MDB_dbi dbi, unsigned int *flags) |
| | Retrieve the DB flags for a database handle. More...
|
| |
| void | mdb_dbi_close (MDB_env *env, MDB_dbi dbi) |
| | Close a database handle. Normally unnecessary. Use with care: More...
|
| |
| int | mdb_drop (MDB_txn *txn, MDB_dbi dbi, int del) |
| | Empty or delete+close a database. More...
|
| |
| int | mdb_set_compare (MDB_txn *txn, MDB_dbi dbi, MDB_cmp_func *cmp) |
| | Set a custom key comparison function for a database. More...
|
| |
| int | mdb_set_dupsort (MDB_txn *txn, MDB_dbi dbi, MDB_cmp_func *cmp) |
| | Set a custom data comparison function for a MDB_DUPSORT database. More...
|
| |
| int | mdb_set_relfunc (MDB_txn *txn, MDB_dbi dbi, MDB_rel_func *rel) |
| | Set a relocation function for a MDB_FIXEDMAP database. More...
|
| |
| int | mdb_set_relctx (MDB_txn *txn, MDB_dbi dbi, void *ctx) |
| | Set a context pointer for a MDB_FIXEDMAP database's relocation function. More...
|
| |
| int | mdb_get (MDB_txn *txn, MDB_dbi dbi, MDB_val *key, MDB_val *data) |
| | Get items from a database. More...
|
| |
| int | mdb_put (MDB_txn *txn, MDB_dbi dbi, MDB_val *key, MDB_val *data, unsigned int flags) |
| | Store items into a database. More...
|
| |
| int | mdb_del (MDB_txn *txn, MDB_dbi dbi, MDB_val *key, MDB_val *data) |
| | Delete items from a database. More...
|
| |
| int | mdb_cursor_open (MDB_txn *txn, MDB_dbi dbi, MDB_cursor **cursor) |
| | Create a cursor handle. More...
|
| |
| void | mdb_cursor_close (MDB_cursor *cursor) |
| | Close a cursor handle. More...
|
| |
| int | mdb_cursor_renew (MDB_txn *txn, MDB_cursor *cursor) |
| | Renew a cursor handle. More...
|
| |
| MDB_txn * | mdb_cursor_txn (MDB_cursor *cursor) |
| | Return the cursor's transaction handle. More...
|
| |
| MDB_dbi | mdb_cursor_dbi (MDB_cursor *cursor) |
| | Return the cursor's database handle. More...
|
| |
| int | mdb_cursor_get (MDB_cursor *cursor, MDB_val *key, MDB_val *data, MDB_cursor_op op) |
| | Retrieve by cursor. More...
|
| |
| int | mdb_cursor_put (MDB_cursor *cursor, MDB_val *key, MDB_val *data, unsigned int flags) |
| | Store by cursor. More...
|
| |
| int | mdb_cursor_del (MDB_cursor *cursor, unsigned int flags) |
| | Delete current key/data pair. More...
|
| |
| int | mdb_cursor_count (MDB_cursor *cursor, mdb_size_t *countp) |
| | Return count of duplicates for current key. More...
|
| |
| int | mdb_cmp (MDB_txn *txn, MDB_dbi dbi, const MDB_val *a, const MDB_val *b) |
| | Compare two data items according to a particular database. More...
|
| |
| int | mdb_dcmp (MDB_txn *txn, MDB_dbi dbi, const MDB_val *a, const MDB_val *b) |
| | Compare two data items according to a particular database. More...
|
| |
| int | mdb_reader_list (MDB_env *env, MDB_msg_func *func, void *ctx) |
| | Dump the entries in the reader lock table. More...
|
| |
| int | mdb_reader_check (MDB_env *env, int *dead) |
| | Check for stale entries in the reader lock table. More...
|
| |