Operate parameters. More...
#include <mdbx.h++>
Public Member Functions | |
constexpr | operate_parameters () noexcept |
constexpr | operate_parameters (const unsigned max_maps, const unsigned max_readers=0, const env::mode mode=env::mode::write_mapped_io, env::durability durability=env::durability::robust_synchronous, const env::reclaiming_options &reclaiming=env::reclaiming_options(), const env::operate_options &options=env::operate_options()) noexcept |
constexpr | operate_parameters (const operate_parameters &) noexcept=default |
constexpr operate_parameters & | operator= (const operate_parameters &) noexcept=default |
MDBX_env_flags_t | make_flags (bool accede=true, bool use_subdirectory=false) const |
Static Public Member Functions | |
static env::mode | mode_from_flags (MDBX_env_flags_t) noexcept |
static env::durability | durability_from_flags (MDBX_env_flags_t) noexcept |
static env::reclaiming_options | reclaiming_from_flags (MDBX_env_flags_t flags) noexcept |
static env::operate_options | options_from_flags (MDBX_env_flags_t flags) noexcept |
Public Attributes | |
unsigned | max_maps {0} |
The maximum number of named tables/maps for the environment. Zero means default value. | |
unsigned | max_readers {0} |
The maximum number of threads/reader slots for the environment. Zero means default value. | |
env::mode | mode {write_mapped_io} |
env::durability | durability {robust_synchronous} |
env::reclaiming_options | reclaiming |
env::operate_options | options |
Operate parameters.
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
constexprdefaultnoexcept |
|
staticnoexcept |
MDBX_env_flags_t mdbx::env::operate_parameters::make_flags | ( | bool | accede = true, |
bool | use_subdirectory = false ) const |
accede | Allows accepting incompatible operating options in case the database is already being used by another process(es) |
use_subdirectory | use subdirectory to place the DB files |
|
staticnoexcept |
|
constexprdefaultnoexcept |
env::durability mdbx::env::operate_parameters::durability {robust_synchronous} |
unsigned mdbx::env::operate_parameters::max_maps {0} |
The maximum number of named tables/maps for the environment. Zero means default value.
unsigned mdbx::env::operate_parameters::max_readers {0} |
The maximum number of threads/reader slots for the environment. Zero means default value.
env::mode mdbx::env::operate_parameters::mode {write_mapped_io} |
env::operate_options mdbx::env::operate_parameters::options |
env::reclaiming_options mdbx::env::operate_parameters::reclaiming |