Resource class for MDB_env*
handles.
More...
#include <lmdb++.h>
Resource class for MDB_env*
handles.
- Note
- Instances of this class are movable, but not copyable.
- See also
- http://symas.com/mdb/doc/group__internal.html#structMDB__env
lmdb::env::env |
( |
MDB_env *const |
handle | ) |
|
|
inlinenoexcept |
Constructor.
- Parameters
-
handle | a valid MDB_env* handle |
lmdb::env::env |
( |
env && |
other | ) |
|
|
inlinenoexcept |
void lmdb::env::close |
( |
| ) |
|
|
inlinenoexcept |
Closes this environment, releasing the memory map.
- Note
- this method is idempotent
- Postcondition
handle() == nullptr
Creates a new LMDB environment.
- Parameters
-
- Exceptions
-
MDB_env* lmdb::env::handle |
( |
| ) |
const |
|
inlinenoexcept |
Returns the underlying MDB_env*
handle.
Opens this environment.
- Parameters
-
- Exceptions
-
lmdb::env::operator MDB_env * |
( |
| ) |
const |
|
inlinenoexcept |
Returns the underlying MDB_env*
handle.
env& lmdb::env::operator= |
( |
env && |
other | ) |
|
|
inlinenoexcept |
Move assignment operator.
env& lmdb::env::set_flags |
( |
const unsigned int |
flags, |
|
|
const bool |
onoff = true |
|
) |
| |
|
inline |
env& lmdb::env::set_mapsize |
( |
const std::size_t |
size | ) |
|
|
inline |
env& lmdb::env::set_max_dbs |
( |
const MDB_dbi |
count | ) |
|
|
inline |
env& lmdb::env::set_max_readers |
( |
const unsigned int |
count | ) |
|
|
inline |
void lmdb::env::sync |
( |
const bool |
force = true | ) |
|
|
inline |
Flushes data buffers to disk.
- Parameters
-
- Exceptions
-
MDB_env* lmdb::env::_handle {nullptr} |
|
protected |
constexpr unsigned int lmdb::env::default_flags = 0 |
|
static |
constexpr mode lmdb::env::default_mode = 0644 |
|
static |
The documentation for this class was generated from the following file: