libmdbx  0.11.6.39 (2022-04-13T11:05:50+03:00)
One of the fastest compact embeddable key-value ACID database without WAL.
mdbx::env::limits Struct Reference

#include <mdbx.h++>

Public Member Functions

 limits ()=delete
 

Static Public Member Functions

static size_t pagesize_min () noexcept
 Returns the minimal database page size in bytes. More...
 
static size_t pagesize_max () noexcept
 Returns the maximal database page size in bytes. More...
 
static size_t dbsize_min (intptr_t pagesize)
 Returns the minimal database size in bytes for specified page size. More...
 
static size_t dbsize_max (intptr_t pagesize)
 Returns the maximal database size in bytes for specified page size. More...
 
static size_t key_min (MDBX_db_flags_t flags) noexcept
 Returns the minimal key size in bytes for specified database flags. More...
 
static size_t key_min (key_mode mode) noexcept
 Returns the minimal key size in bytes for specified keys mode. More...
 
static size_t key_max (intptr_t pagesize, MDBX_db_flags_t flags)
 Returns the maximal key size in bytes for specified page size and database flags. More...
 
static size_t key_max (intptr_t pagesize, key_mode mode)
 Returns the maximal key size in bytes for specified page size and keys mode. More...
 
static size_t key_max (const env &, MDBX_db_flags_t flags)
 Returns the maximal key size in bytes for given environment and database flags. More...
 
static size_t key_max (const env &, key_mode mode)
 Returns the maximal key size in bytes for given environment and keys mode. More...
 
static size_t value_min (MDBX_db_flags_t flags) noexcept
 Returns the minimal values size in bytes for specified database flags. More...
 
static size_t value_min (value_mode) noexcept
 Returns the minimal values size in bytes for specified values mode. More...
 
static size_t value_max (intptr_t pagesize, MDBX_db_flags_t flags)
 Returns the maximal value size in bytes for specified page size and database flags. More...
 
static size_t value_max (intptr_t pagesize, value_mode)
 Returns the maximal value size in bytes for specified page size and values mode. More...
 
static size_t value_max (const env &, MDBX_db_flags_t flags)
 Returns the maximal value size in bytes for given environment and database flags. More...
 
static size_t value_max (const env &, value_mode)
 Returns the maximal value size in bytes for specified page size and values mode. More...
 
static size_t transaction_size_max (intptr_t pagesize)
 Returns the maximal write transaction size (i.e. limit for summary volume of dirty pages) in bytes for specified page size. More...
 

Constructor & Destructor Documentation

◆ limits()

mdbx::env::limits::limits ( )
delete

Member Function Documentation

◆ dbsize_max()

size_t mdbx::env::limits::dbsize_max ( intptr_t  pagesize)
inlinestatic

Returns the maximal database size in bytes for specified page size.

◆ dbsize_min()

size_t mdbx::env::limits::dbsize_min ( intptr_t  pagesize)
inlinestatic

Returns the minimal database size in bytes for specified page size.

◆ key_max() [1/4]

size_t mdbx::env::limits::key_max ( const env env,
key_mode  mode 
)
inlinestatic

Returns the maximal key size in bytes for given environment and keys mode.

◆ key_max() [2/4]

size_t mdbx::env::limits::key_max ( const env env,
MDBX_db_flags_t  flags 
)
inlinestatic

Returns the maximal key size in bytes for given environment and database flags.

◆ key_max() [3/4]

size_t mdbx::env::limits::key_max ( intptr_t  pagesize,
key_mode  mode 
)
inlinestatic

Returns the maximal key size in bytes for specified page size and keys mode.

◆ key_max() [4/4]

size_t mdbx::env::limits::key_max ( intptr_t  pagesize,
MDBX_db_flags_t  flags 
)
inlinestatic

Returns the maximal key size in bytes for specified page size and database flags.

◆ key_min() [1/2]

size_t mdbx::env::limits::key_min ( key_mode  mode)
inlinestaticnoexcept

Returns the minimal key size in bytes for specified keys mode.

◆ key_min() [2/2]

size_t mdbx::env::limits::key_min ( MDBX_db_flags_t  flags)
inlinestaticnoexcept

Returns the minimal key size in bytes for specified database flags.

◆ pagesize_max()

size_t mdbx::env::limits::pagesize_max ( )
inlinestaticnoexcept

Returns the maximal database page size in bytes.

◆ pagesize_min()

size_t mdbx::env::limits::pagesize_min ( )
inlinestaticnoexcept

Returns the minimal database page size in bytes.

◆ transaction_size_max()

size_t mdbx::env::limits::transaction_size_max ( intptr_t  pagesize)
inlinestatic

Returns the maximal write transaction size (i.e. limit for summary volume of dirty pages) in bytes for specified page size.

◆ value_max() [1/4]

size_t mdbx::env::limits::value_max ( const env env,
MDBX_db_flags_t  flags 
)
inlinestatic

Returns the maximal value size in bytes for given environment and database flags.

◆ value_max() [2/4]

size_t mdbx::env::limits::value_max ( const env env,
value_mode  mode 
)
inlinestatic

Returns the maximal value size in bytes for specified page size and values mode.

◆ value_max() [3/4]

size_t mdbx::env::limits::value_max ( intptr_t  pagesize,
MDBX_db_flags_t  flags 
)
inlinestatic

Returns the maximal value size in bytes for specified page size and database flags.

◆ value_max() [4/4]

size_t mdbx::env::limits::value_max ( intptr_t  pagesize,
value_mode  mode 
)
inlinestatic

Returns the maximal value size in bytes for specified page size and values mode.

◆ value_min() [1/2]

size_t mdbx::env::limits::value_min ( MDBX_db_flags_t  flags)
inlinestaticnoexcept

Returns the minimal values size in bytes for specified database flags.

◆ value_min() [2/2]

size_t mdbx::env::limits::value_min ( value_mode  mode)
inlinestaticnoexcept

Returns the minimal values size in bytes for specified values mode.


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