libmdbx 0.13.1.73 (2024-11-15T15:58:48+03:00)
One of the fastest compact embeddable key-value ACID database without WAL.
 
Loading...
Searching...
No Matches
mdbx::env::operate_parameters Struct Reference

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_parametersoperator= (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
 

Detailed Description

Operate parameters.

Constructor & Destructor Documentation

◆ operate_parameters() [1/3]

constexpr mdbx::env::operate_parameters::operate_parameters ( )
inlineconstexprnoexcept

◆ operate_parameters() [2/3]

constexpr mdbx::env::operate_parameters::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() 
)
inlineconstexprnoexcept

◆ operate_parameters() [3/3]

constexpr mdbx::env::operate_parameters::operate_parameters ( const operate_parameters )
constexprdefaultnoexcept

Member Function Documentation

◆ durability_from_flags()

static env::durability mdbx::env::operate_parameters::durability_from_flags ( MDBX_env_flags_t  )
staticnoexcept

◆ make_flags()

MDBX_env_flags_t mdbx::env::operate_parameters::make_flags ( bool  accede = true,
bool  use_subdirectory = false 
) const
Parameters
accedeAllows accepting incompatible operating options in case the database is already being used by another process(es)
See also
MDBX_ACCEDE
Parameters
use_subdirectoryuse subdirectory to place the DB files

◆ mode_from_flags()

static env::mode mdbx::env::operate_parameters::mode_from_flags ( MDBX_env_flags_t  )
staticnoexcept

◆ operator=()

constexpr operate_parameters & mdbx::env::operate_parameters::operator= ( const operate_parameters )
constexprdefaultnoexcept

Member Data Documentation

◆ durability

env::durability mdbx::env::operate_parameters::durability {robust_synchronous}

◆ max_maps

unsigned mdbx::env::operate_parameters::max_maps {0}

The maximum number of named tables/maps for the environment. Zero means default value.

◆ max_readers

unsigned mdbx::env::operate_parameters::max_readers {0}

The maximum number of threads/reader slots for the environment. Zero means default value.

◆ mode

env::mode mdbx::env::operate_parameters::mode {write_mapped_io}

◆ options

env::operate_options mdbx::env::operate_parameters::options

◆ reclaiming

env::reclaiming_options mdbx::env::operate_parameters::reclaiming

The documentation for this struct was generated from the following file: