|
| constexpr const version_info & | mdbx::get_version () noexcept |
| | Returns libmdbx version information.
|
| constexpr const build_info & | mdbx::get_build () noexcept |
| | Returns libmdbx build information.
|
| constexpr bool | mdbx::operator== (const error &a, const error &b) |
| constexpr bool | mdbx::operator!= (const error &a, const error &b) |
| constexpr bool | mdbx::operator== (const slice &a, const slice &b) |
| constexpr bool | mdbx::operator< (const slice &a, const slice &b) |
| constexpr bool | mdbx::operator> (const slice &a, const slice &b) |
| constexpr bool | mdbx::operator<= (const slice &a, const slice &b) |
| constexpr bool | mdbx::operator>= (const slice &a, const slice &b) |
| constexpr bool | mdbx::operator!= (const slice &a, const slice &b) |
| template<class ALLOCATOR, typename CAPACITY_POLICY> |
| inline ::std::ostream & | mdbx::operator<< (::std::ostream &out, const buffer< ALLOCATOR, CAPACITY_POLICY > &it) |
| | mdbx::MDBX_EXTERN_API_TEMPLATE (LIBMDBX_API_TYPE, buffer< legacy_allocator, default_capacity_policy >) |
| | mdbx::MDBX_EXTERN_API_TEMPLATE (LIBMDBX_API_TYPE, buffer< polymorphic_allocator, default_capacity_policy >) |
| template<class ALLOCATOR, class CAPACITY_POLICY, MutableByteProducer PRODUCER> |
| buffer< ALLOCATOR, CAPACITY_POLICY > | mdbx::make_buffer (PRODUCER &producer, const ALLOCATOR &alloc) |
| template<class ALLOCATOR, class CAPACITY_POLICY, ImmutableByteProducer PRODUCER> |
| buffer< ALLOCATOR, CAPACITY_POLICY > | mdbx::make_buffer (const PRODUCER &producer, const ALLOCATOR &alloc) |
| template<class ALLOCATOR, MutableByteProducer PRODUCER> |
| string< ALLOCATOR > | mdbx::make_string (PRODUCER &producer, const ALLOCATOR &alloc) |
| template<class ALLOCATOR, ImmutableByteProducer PRODUCER> |
| string< ALLOCATOR > | mdbx::make_string (const PRODUCER &producer, const ALLOCATOR &alloc) |
| constexpr bool | mdbx::operator== (const pair &a, const pair &b) |
| constexpr bool | mdbx::operator< (const pair &a, const pair &b) |
| constexpr bool | mdbx::operator> (const pair &a, const pair &b) |
| constexpr bool | mdbx::operator<= (const pair &a, const pair &b) |
| constexpr bool | mdbx::operator>= (const pair &a, const pair &b) |
| constexpr bool | mdbx::operator!= (const pair &a, const pair &b) |
| inline ::std::ostream & | mdbx::operator<< (::std::ostream &out, const to_hex &wrapper) |
| inline ::std::ostream & | mdbx::operator<< (::std::ostream &out, const to_base58 &wrapper) |
| inline ::std::ostream & | mdbx::operator<< (::std::ostream &out, const to_base64 &wrapper) |
| int | mdbx::compare_position_nothrow (const cursor &left, const cursor &right, bool ignore_nested=false) |
| int | mdbx::compare_position (const cursor &left, const cursor &right, bool ignore_nested=false) |
| ptrdiff_t | mdbx::estimate (const cursor &from, const cursor &to) |
| LIBMDBX_API::std::ostream & | mdbx::operator<< (::std::ostream &, const slice &) |
| LIBMDBX_API::std::ostream & | mdbx::operator<< (::std::ostream &, const pair &) |
| LIBMDBX_API::std::ostream & | mdbx::operator<< (::std::ostream &, const pair_result &) |
| LIBMDBX_API::std::ostream & | mdbx::operator<< (::std::ostream &, const env::geometry::size &) |
| LIBMDBX_API::std::ostream & | mdbx::operator<< (::std::ostream &, const env::geometry &) |
| LIBMDBX_API::std::ostream & | mdbx::operator<< (::std::ostream &, const env::operate_parameters &) |
| LIBMDBX_API::std::ostream & | mdbx::operator<< (::std::ostream &, const env::mode &) |
| LIBMDBX_API::std::ostream & | mdbx::operator<< (::std::ostream &, const env::durability &) |
| LIBMDBX_API::std::ostream & | mdbx::operator<< (::std::ostream &, const env::reclaiming_options &) |
| LIBMDBX_API::std::ostream & | mdbx::operator<< (::std::ostream &, const env::operate_options &) |
| LIBMDBX_API::std::ostream & | mdbx::operator<< (::std::ostream &, const env_managed::create_parameters &) |
| LIBMDBX_API::std::ostream & | mdbx::operator<< (::std::ostream &, const MDBX_log_level_t &) |
| LIBMDBX_API::std::ostream & | mdbx::operator<< (::std::ostream &, const MDBX_debug_flags_t &) |
| LIBMDBX_API::std::ostream & | mdbx::operator<< (::std::ostream &, const error &) |
| inline ::std::ostream & | mdbx::operator<< (::std::ostream &out, const MDBX_error_t &errcode) |
| constexpr | mdbx::map_handle::info::info (map_handle::flags flags, map_handle::state state) noexcept |
| MDBX_CXX11_CONSTEXPR_ENUM mdbx::key_mode | mdbx::map_handle::info::key_mode () const noexcept |
| MDBX_CXX11_CONSTEXPR_ENUM mdbx::value_mode | mdbx::map_handle::info::value_mode () const noexcept |
| bool | mdbx::exception_thunk::is_clean () const noexcept |
| void | mdbx::exception_thunk::capture () noexcept |
| void | mdbx::exception_thunk::rethrow_captured () const |
| constexpr | mdbx::error::error (MDBX_error_t error_code) noexcept |
| constexpr bool | mdbx::error::is_success () const noexcept |
| constexpr bool | mdbx::error::is_result_true () const noexcept |
| constexpr bool | mdbx::error::is_result_false () const noexcept |
| constexpr bool | mdbx::error::is_failure () const noexcept |
| constexpr MDBX_error_t | mdbx::error::code () const noexcept |
| | Returns error code.
|
| constexpr bool | mdbx::error::is_mdbx_error () const noexcept |
| | Returns true for MDBX's errors.
|
| static void | mdbx::error::throw_exception (int error_code) |
| void | mdbx::error::throw_on_failure () const |
| void | mdbx::error::success_or_throw () const |
| void | mdbx::error::success_or_throw (const exception_thunk &) const |
| static void | mdbx::error::throw_on_nullptr (const void *ptr, MDBX_error_t error_code) |
| static void | mdbx::error::throw_on_failure (int error_code) |
| static void | mdbx::error::success_or_throw (MDBX_error_t error_code) |
| static bool | mdbx::error::boolean_or_throw (int error_code) |
| static void | mdbx::error::success_or_throw (int error_code, const exception_thunk &) |
| static bool | mdbx::error::boolean_or_throw (int error_code, const exception_thunk &) |
| constexpr | mdbx::slice::slice () noexcept |
| | Create an empty slice.
|
| constexpr | mdbx::slice::slice (const void *ptr, size_t bytes) |
| | Create a slice that refers to [0,bytes-1] of memory bytes pointed by ptr.
|
| constexpr | mdbx::slice::slice (const void *begin, const void *end) |
| | Create a slice that refers to [begin,end] of memory bytes.
|
| constexpr | mdbx::slice::slice (const char *c_str) |
| | Create a slice that refers to c_str[0,strlen(c_str)-1].
|
| constexpr | mdbx::slice::slice (const MDBX_val &src) |
| constexpr | mdbx::slice::slice (MDBX_val &&src) |
| constexpr | mdbx::slice::slice (slice &&src) noexcept |
| slice & | mdbx::slice::assign (const void *ptr, size_t bytes) |
| slice & | mdbx::slice::assign (const slice &src) noexcept |
| slice & | mdbx::slice::assign (const ::MDBX_val &src) |
| slice & | mdbx::slice::assign (slice &&src) noexcept |
| slice & | mdbx::slice::assign (::MDBX_val &&src) |
| slice & | mdbx::slice::assign (const void *begin, const void *end) |
| slice & | mdbx::slice::assign (const char *c_str) |
| slice & | mdbx::slice::operator= (slice &&src) noexcept |
| slice & | mdbx::slice::operator= (::MDBX_val &&src) |
| constexpr const byte * | mdbx::slice::byte_ptr () const noexcept |
| | Returns casted to pointer to byte an address of data.
|
| constexpr const byte * | mdbx::slice::end_byte_ptr () const noexcept |
| | Returns casted to pointer to byte an end of data.
|
| constexpr byte * | mdbx::slice::byte_ptr () noexcept |
| constexpr byte * | mdbx::slice::end_byte_ptr () noexcept |
| constexpr const char * | mdbx::slice::char_ptr () const noexcept |
| | Returns casted to pointer to char an address of data.
|
| constexpr const char * | mdbx::slice::end_char_ptr () const noexcept |
| | Returns casted to pointer to char an end of data.
|
| constexpr char * | mdbx::slice::char_ptr () noexcept |
| constexpr char * | mdbx::slice::end_char_ptr () noexcept |
| constexpr const void * | mdbx::slice::data () const noexcept |
| | Return a pointer to the beginning of the referenced data.
|
| constexpr const void * | mdbx::slice::end () const noexcept |
| | Return a pointer to the ending of the referenced data.
|
| constexpr void * | mdbx::slice::data () noexcept |
| constexpr void * | mdbx::slice::end () noexcept |
| constexpr size_t | mdbx::slice::length () const noexcept |
| | Returns the number of bytes.
|
| constexpr slice & | mdbx::slice::set_length (size_t bytes) |
| | Set slice length.
|
| constexpr slice & | mdbx::slice::set_end (const void *ptr) |
| | Sets the length by specifying the end of the slice data.
|
| constexpr bool | mdbx::slice::empty () const noexcept |
| | Checks whether the slice is empty.
|
| constexpr bool | mdbx::slice::is_null () const noexcept |
| | Checks whether the slice data pointer is nullptr.
|
| constexpr size_t | mdbx::slice::size () const noexcept |
| | Returns the number of bytes.
|
| constexpr void | mdbx::slice::invalidate () noexcept |
| | Depletes content of slice and make it invalid.
|
| constexpr void | mdbx::slice::clear () noexcept |
| | Makes the slice empty and referencing to nothing.
|
| void | mdbx::slice::remove_prefix (size_t n) noexcept |
| | Drops the first "n" bytes from this slice.
|
| void | mdbx::slice::safe_remove_prefix (size_t n) |
| | Drops the first "n" bytes from this slice.
|
| void | mdbx::slice::remove_suffix (size_t n) noexcept |
| | Drops the last "n" bytes from this slice.
|
| void | mdbx::slice::safe_remove_suffix (size_t n) |
| | Drops the last "n" bytes from this slice.
|
| constexpr bool | mdbx::slice::starts_with (const slice &prefix) const noexcept |
| | Checks if the data starts with the given prefix.
|
| constexpr bool | mdbx::slice::ends_with (const slice &suffix) const noexcept |
| | Checks if the data ends with the given suffix.
|
| constexpr size_t | mdbx::slice::hash_value () const noexcept |
| | Returns the hash value of referenced data.
|
| constexpr byte | mdbx::slice::operator[] (size_t n) const noexcept |
| | Returns the nth byte in the referenced data.
|
| constexpr byte | mdbx::slice::at (size_t n) const |
| | Returns the nth byte in the referenced data with bounds checking.
|
| constexpr slice | mdbx::slice::head (size_t n) const noexcept |
| | Returns the first "n" bytes of the slice.
|
| constexpr slice | mdbx::slice::tail (size_t n) const noexcept |
| | Returns the last "n" bytes of the slice.
|
| constexpr slice | mdbx::slice::middle (size_t from, size_t n) const noexcept |
| | Returns the middle "n" bytes of the slice.
|
| constexpr slice | mdbx::slice::safe_head (size_t n) const |
| | Returns the first "n" bytes of the slice.
|
| constexpr slice | mdbx::slice::safe_tail (size_t n) const |
| | Returns the last "n" bytes of the slice.
|
| constexpr slice | mdbx::slice::safe_middle (size_t from, size_t n) const |
| | Returns the middle "n" bytes of the slice.
|
| static constexpr intptr_t | mdbx::slice::compare_fast (const slice &a, const slice &b) noexcept |
| | Three-way fast non-lexicographically length-based comparison.
|
| static constexpr intptr_t | mdbx::slice::compare_lexicographically (const slice &a, const slice &b) noexcept |
| | Three-way lexicographically comparison.
|
| constexpr | mdbx::buffer< ALLOCATOR, CAPACITY_POLICY >::buffer (const struct slice &src, bool make_reference, const allocator_type &alloc=allocator_type()) |
| template<class ALLOCATOR, typename CAPACITY_POLICY> |
| | mdbx::buffer< ALLOCATOR, CAPACITY_POLICY >::buffer (const txn &transaction, const struct slice &src, const allocator_type &alloc) |
| template<class ALLOCATOR = default_allocator> |
| string< ALLOCATOR > | mdbx::to_hex::as_string (const ALLOCATOR &alloc=ALLOCATOR()) const |
| | Returns a string with a hexadecimal dump of a passed slice.
|
| template<class ALLOCATOR = default_allocator, typename CAPACITY_POLICY = default_capacity_policy> |
| buffer< ALLOCATOR, CAPACITY_POLICY > | mdbx::to_hex::as_buffer (const ALLOCATOR &alloc=ALLOCATOR()) const |
| | Returns a buffer with a hexadecimal dump of a passed slice.
|
| template<class ALLOCATOR = default_allocator> |
| string< ALLOCATOR > | mdbx::to_base58::as_string (const ALLOCATOR &alloc=ALLOCATOR()) const |
| | Returns a string with a Base58 dump of a passed slice.
|
| template<class ALLOCATOR = default_allocator, typename CAPACITY_POLICY = default_capacity_policy> |
| buffer< ALLOCATOR, CAPACITY_POLICY > | mdbx::to_base58::as_buffer (const ALLOCATOR &alloc=ALLOCATOR()) const |
| | Returns a buffer with a Base58 dump of a passed slice.
|
| template<class ALLOCATOR = default_allocator> |
| string< ALLOCATOR > | mdbx::to_base64::as_string (const ALLOCATOR &alloc=ALLOCATOR()) const |
| | Returns a string with a Base64 dump of a passed slice.
|
| template<class ALLOCATOR = default_allocator, typename CAPACITY_POLICY = default_capacity_policy> |
| buffer< ALLOCATOR, CAPACITY_POLICY > | mdbx::to_base64::as_buffer (const ALLOCATOR &alloc=ALLOCATOR()) const |
| | Returns a buffer with a Base64 dump of a passed slice.
|
| template<class ALLOCATOR = default_allocator> |
| string< ALLOCATOR > | mdbx::from_hex::as_string (const ALLOCATOR &alloc=ALLOCATOR()) const |
| | Decodes hexadecimal dump from a passed slice to returned string.
|
| template<class ALLOCATOR = default_allocator, typename CAPACITY_POLICY = default_capacity_policy> |
| buffer< ALLOCATOR, CAPACITY_POLICY > | mdbx::from_hex::as_buffer (const ALLOCATOR &alloc=ALLOCATOR()) const |
| | Decodes hexadecimal dump from a passed slice to returned buffer.
|
| template<class ALLOCATOR = default_allocator> |
| string< ALLOCATOR > | mdbx::from_base58::as_string (const ALLOCATOR &alloc=ALLOCATOR()) const |
| | Decodes Base58 dump from a passed slice to returned string.
|
| template<class ALLOCATOR = default_allocator, typename CAPACITY_POLICY = default_capacity_policy> |
| buffer< ALLOCATOR, CAPACITY_POLICY > | mdbx::from_base58::as_buffer (const ALLOCATOR &alloc=ALLOCATOR()) const |
| | Decodes Base58 dump from a passed slice to returned buffer.
|
| template<class ALLOCATOR = default_allocator> |
| string< ALLOCATOR > | mdbx::from_base64::as_string (const ALLOCATOR &alloc=ALLOCATOR()) const |
| | Decodes Base64 dump from a passed slice to returned string.
|
| template<class ALLOCATOR = default_allocator, typename CAPACITY_POLICY = default_capacity_policy> |
| buffer< ALLOCATOR, CAPACITY_POLICY > | mdbx::from_base64::as_buffer (const ALLOCATOR &alloc=ALLOCATOR()) const |
| | Decodes Base64 dump from a passed slice to returned buffer.
|
| template<class ALLOCATOR = default_allocator> |
| string< ALLOCATOR > | mdbx::slice::as_hex_string (bool uppercase=false, unsigned wrap_width=0, const ALLOCATOR &alloc=ALLOCATOR()) const |
| | Returns a string with a hexadecimal dump of the slice content.
|
| template<class ALLOCATOR = default_allocator> |
| string< ALLOCATOR > | mdbx::slice::as_base58_string (unsigned wrap_width=0, const ALLOCATOR &alloc=ALLOCATOR()) const |
| | Returns a string with a Base58 dump of the slice content.
|
| template<class ALLOCATOR = default_allocator> |
| string< ALLOCATOR > | mdbx::slice::as_base64_string (unsigned wrap_width=0, const ALLOCATOR &alloc=ALLOCATOR()) const |
| | Returns a string with a Base58 dump of the slice content.
|
| template<class ALLOCATOR = default_allocator, class CAPACITY_POLICY = default_capacity_policy> |
| buffer< ALLOCATOR, CAPACITY_POLICY > | mdbx::slice::encode_hex (bool uppercase=false, unsigned wrap_width=0, const ALLOCATOR &alloc=ALLOCATOR()) const |
| | Returns a buffer with a hexadecimal dump of the slice content.
|
| template<class ALLOCATOR = default_allocator, class CAPACITY_POLICY = default_capacity_policy> |
| buffer< ALLOCATOR, CAPACITY_POLICY > | mdbx::slice::encode_base58 (unsigned wrap_width=0, const ALLOCATOR &alloc=ALLOCATOR()) const |
| | Returns a buffer with a Base58 dump of the slice content.
|
| template<class ALLOCATOR = default_allocator, class CAPACITY_POLICY = default_capacity_policy> |
| buffer< ALLOCATOR, CAPACITY_POLICY > | mdbx::slice::encode_base64 (unsigned wrap_width=0, const ALLOCATOR &alloc=ALLOCATOR()) const |
| | Returns a buffer with a Base64 dump of the slice content.
|
| template<class ALLOCATOR = default_allocator, class CAPACITY_POLICY = default_capacity_policy> |
| buffer< ALLOCATOR, CAPACITY_POLICY > | mdbx::slice::hex_decode (bool ignore_spaces=false, const ALLOCATOR &alloc=ALLOCATOR()) const |
| | Decodes hexadecimal dump from the slice content to returned buffer.
|
| template<class ALLOCATOR = default_allocator, class CAPACITY_POLICY = default_capacity_policy> |
| buffer< ALLOCATOR, CAPACITY_POLICY > | mdbx::slice::base58_decode (bool ignore_spaces=false, const ALLOCATOR &alloc=ALLOCATOR()) const |
| | Decodes Base58 dump from the slice content to returned buffer.
|
| template<class ALLOCATOR = default_allocator, class CAPACITY_POLICY = default_capacity_policy> |
| buffer< ALLOCATOR, CAPACITY_POLICY > | mdbx::slice::base64_decode (bool ignore_spaces=false, const ALLOCATOR &alloc=ALLOCATOR()) const |
| | Decodes Base64 dump from the slice content to returned buffer.
|
| static constexpr intptr_t | mdbx::pair::compare_fast (const pair &a, const pair &b) noexcept |
| | Three-way fast non-lexicographically length-based comparison.
|
| static constexpr intptr_t | mdbx::pair::compare_lexicographically (const pair &a, const pair &b) noexcept |
| | Three-way lexicographically comparison.
|
| bool | mdbx::slice::is_hex (bool ignore_spaces=false) const noexcept |
| | Checks whether the content of the slice is a hexadecimal dump.
|
| bool | mdbx::slice::is_base58 (bool ignore_spaces=false) const noexcept |
| | Checks whether the content of the slice is a Base58 dump.
|
| bool | mdbx::slice::is_base64 (bool ignore_spaces=false) const noexcept |
| | Checks whether the content of the slice is a Base64 dump.
|
| constexpr | mdbx::env::env (MDBX_env *ptr) noexcept |
| env & | mdbx::env::operator= (env &&) noexcept |
| | mdbx::env::env (env &&) noexcept |
| | mdbx::env::~env () noexcept |
| geometry & | mdbx::env::geometry::make_fixed (intptr_t size) noexcept |
| geometry & | mdbx::env::geometry::make_dynamic (intptr_t lower=default_value, intptr_t upper=default_value) noexcept |
| static env::reclaiming_options | mdbx::env::operate_parameters::reclaiming_from_flags (MDBX_env_flags_t flags) noexcept |
| static env::operate_options | mdbx::env::operate_parameters::options_from_flags (MDBX_env_flags_t flags) noexcept |
| static size_t | mdbx::env::limits::pagesize_min () noexcept |
| | Returns the minimal database page size in bytes.
|
| static size_t | mdbx::env::limits::pagesize_max () noexcept |
| | Returns the maximal database page size in bytes.
|
| static size_t | mdbx::env::limits::dbsize_min (intptr_t pagesize) |
| | Returns the minimal database size in bytes for specified page size.
|
| static size_t | mdbx::env::limits::dbsize_max (intptr_t pagesize) |
| | Returns the maximal database size in bytes for specified page size.
|
| static size_t | mdbx::env::limits::key_min (MDBX_db_flags_t flags) noexcept |
| | Returns the minimal key size in bytes for specified table flags.
|
| static size_t | mdbx::env::limits::key_min (key_mode mode) noexcept |
| | Returns the minimal key size in bytes for specified keys mode.
|
| static size_t | mdbx::env::limits::key_max (intptr_t pagesize, MDBX_db_flags_t flags) |
| | Returns the maximal key size in bytes for specified page size and table flags.
|
| static size_t | mdbx::env::limits::key_max (intptr_t pagesize, key_mode mode) |
| | Returns the maximal key size in bytes for specified page size and keys mode.
|
| static size_t | mdbx::env::limits::key_max (const env &, MDBX_db_flags_t flags) |
| | Returns the maximal key size in bytes for given environment and table flags.
|
| static size_t | mdbx::env::limits::key_max (const env &, key_mode mode) |
| | Returns the maximal key size in bytes for given environment and keys mode.
|
| static size_t | mdbx::env::limits::value_min (MDBX_db_flags_t flags) noexcept |
| | Returns the minimal values size in bytes for specified table flags.
|
| static size_t | mdbx::env::limits::value_min (value_mode) noexcept |
| | Returns the minimal values size in bytes for specified values mode.
|
| static size_t | mdbx::env::limits::value_max (intptr_t pagesize, MDBX_db_flags_t flags) |
| | Returns the maximal value size in bytes for specified page size and table flags.
|
| static size_t | mdbx::env::limits::value_max (intptr_t pagesize, value_mode) |
| | Returns the maximal value size in bytes for specified page size and values mode.
|
| static size_t | mdbx::env::limits::value_max (const env &, MDBX_db_flags_t flags) |
| | Returns the maximal value size in bytes for given environment and table flags.
|
| static size_t | mdbx::env::limits::value_max (const env &, value_mode) |
| | Returns the maximal value size in bytes for specified page size and values mode.
|
| static size_t | mdbx::env::limits::pairsize4page_max (intptr_t pagesize, MDBX_db_flags_t flags) |
| | Returns maximal size of key-value pair to fit in a single page for specified size and table flags.
|
| static size_t | mdbx::env::limits::pairsize4page_max (intptr_t pagesize, value_mode) |
| | Returns maximal size of key-value pair to fit in a single page for specified page size and values mode.
|
| static size_t | mdbx::env::limits::pairsize4page_max (const env &, MDBX_db_flags_t flags) |
| | Returns maximal size of key-value pair to fit in a single page for given environment and table flags.
|
| static size_t | mdbx::env::limits::pairsize4page_max (const env &, value_mode) |
| | Returns maximal size of key-value pair to fit in a single page for specified page size and values mode.
|
| static size_t | mdbx::env::limits::valsize4page_max (intptr_t pagesize, MDBX_db_flags_t flags) |
| | Returns maximal data size in bytes to fit in a leaf-page or single large/overflow-page for specified size and table flags.
|
| static size_t | mdbx::env::limits::valsize4page_max (intptr_t pagesize, value_mode) |
| | Returns maximal data size in bytes to fit in a leaf-page or single large/overflow-page for specified page size and values mode.
|
| static size_t | mdbx::env::limits::valsize4page_max (const env &, MDBX_db_flags_t flags) |
| | Returns maximal data size in bytes to fit in a leaf-page or single large/overflow-page for given environment and table flags.
|
| static size_t | mdbx::env::limits::valsize4page_max (const env &, value_mode) |
| | Returns maximal data size in bytes to fit in a leaf-page or single large/overflow-page for specified page size and values mode.
|
| static size_t | mdbx::env::limits::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.
|
| static size_t | mdbx::env::limits::max_map_handles (void) |
| | Returns the maximum opened map handles, aka DBI-handles.
|
| env::operate_parameters | mdbx::env::get_operation_parameters () const |
| | Returns current operation parameters.
|
| env::mode | mdbx::env::get_mode () const |
| | Returns current operation mode.
|
| env::durability | mdbx::env::get_durability () const |
| | Returns current durability mode.
|
| env::reclaiming_options | mdbx::env::get_reclaiming () const |
| | Returns current reclaiming options.
|
| env::operate_options | mdbx::env::get_options () const |
| | Returns current operate options.
|
| stat | mdbx::env::get_stat () const |
| | Returns snapshot statistics about the MDBX environment.
|
| stat | mdbx::env::get_stat (const txn &) const |
| | Return statistics about the MDBX environment accordingly to the specified transaction.
|
| info | mdbx::env::get_info () const |
| | Return snapshot information about the MDBX environment.
|
| info | mdbx::env::get_info (const txn &) const |
| | Return information about the MDBX environment accordingly to the specified transaction.
|
| filehandle | mdbx::env::get_filehandle () const |
| | Returns the file descriptor for the DXB file of MDBX environment.
|
| MDBX_env_flags_t | mdbx::env::get_flags () const |
| | Returns environment flags.
|
| unsigned | mdbx::env::max_readers () const |
| | Returns the maximum number of threads/reader slots for the environment.
|
| unsigned | mdbx::env::max_maps () const |
| | Returns the maximum number of named tables for the environment.
|
| void * | mdbx::env::get_context () const noexcept |
| | Returns the application context associated with the environment.
|
| env & | mdbx::env::set_context (void *your_context) |
| | Sets the application context associated with the environment.
|
| env & | mdbx::env::set_sync_threshold (size_t bytes) |
| | Sets threshold to force flush the data buffers to disk, for non-sync durability modes.
|
| size_t | mdbx::env::sync_threshold () const |
| | Gets threshold used to force flush the data buffers to disk, for non-sync durability modes.
|
| env & | mdbx::env::set_sync_period__seconds_16dot16 (unsigned seconds_16dot16) |
| | Sets relative period since the last unsteady commit to force flush the data buffers to disk, for non-sync durability modes.
|
| unsigned | mdbx::env::sync_period__seconds_16dot16 () const |
| | Gets relative period since the last unsteady commit that used to force flush the data buffers to disk, for non-sync durability modes.
|
| env & | mdbx::env::set_sync_period__seconds_double (double seconds) |
| | Sets relative period since the last unsteady commit to force flush the data buffers to disk, for non-sync durability modes.
|
| double | mdbx::env::sync_period__seconds_double () const |
| | Gets relative period since the last unsteady commit that used to force flush the data buffers to disk, for non-sync durability modes.
|
| env & | mdbx::env::set_extra_option (extra_runtime_option option, uint64_t value) |
| | Sets the value of a extra runtime options for an environment.
|
| uint64_t | mdbx::env::extra_option (extra_runtime_option option) const |
| | Gets the value of extra runtime options from an environment.
|
| env & | mdbx::env::alter_flags (MDBX_env_flags_t flags, bool on_off) |
| | Alter environment flags.
|
| env & | mdbx::env::set_geometry (const geometry &size) |
| | Set all size-related parameters of environment.
|
| bool | mdbx::env::sync_to_disk (bool force=true, bool nonblock=false) |
| | Flush the environment data buffers.
|
| void | mdbx::env::close_map (const map_handle &) |
| | Close a key-value map (aka table) handle. Normally unnecessary.
|
| constexpr | mdbx::env::reader_info::reader_info (int slot, mdbx_pid_t pid, mdbx_tid_t thread, uint64_t txnid, uint64_t lag, size_t used, size_t retained) noexcept |
| template<typename VISITOR> |
| int | mdbx::env::enumerate_readers (VISITOR &visitor) |
| | Enumerate readers.
|
| unsigned | mdbx::env::check_readers () |
| | Checks for stale readers in the lock table and return number of cleared slots.
|
| env & | mdbx::env::set_HandleSlowReaders (MDBX_hsr_func) |
| | Sets a Handle-Slow-Readers callback to resolve database full/overflow issue due to a reader(s) which prevents the old data from being recycled.
|
| MDBX_hsr_func | mdbx::env::get_HandleSlowReaders () const noexcept |
| | Returns the current Handle-Slow-Readers callback used to resolve database full/overflow issue due to a reader(s) which prevents the old data from being recycled.
|
| txn_managed | mdbx::env::start_read () const |
| | Starts read (read-only) transaction.
|
| txn_managed | mdbx::env::prepare_read () const |
| | Creates but not start read transaction.
|
| txn_managed | mdbx::env::start_write (bool dont_wait=false) |
| | Starts write (read-write) transaction.
|
| txn_managed | mdbx::env::start_write (txn &parent) |
| | Starts write (read-write) transaction.
|
| txn_managed | mdbx::env::try_start_write () |
| | Tries to start write (read-write) transaction without blocking.
|
| constexpr | mdbx::txn::txn (MDBX_txn *ptr) noexcept |
| txn & | mdbx::txn::operator= (txn &&) noexcept |
| | mdbx::txn::txn (txn &&) noexcept |
| | mdbx::txn::~txn () noexcept |
| void * | mdbx::txn::get_context () const noexcept |
| | Returns the application context associated with the transaction.
|
| txn & | mdbx::txn::set_context (void *your_context) |
| | Sets the application context associated with the transaction.
|
| bool | mdbx::txn::is_dirty (const void *ptr) const |
| | Checks whether the given data is on a dirty page.
|
| inline ::mdbx::env | mdbx::txn::env () const noexcept |
| | Returns the transaction's environment.
|
| MDBX_txn_flags_t | mdbx::txn::flags () const |
| | Returns transaction's flags.
|
| uint64_t | mdbx::txn::id () const |
| | Return the transaction's ID.
|
| void | mdbx::txn::reset_reading () |
| | Reset read-only transaction.
|
| void | mdbx::txn::make_broken () |
| | Marks transaction as broken to prevent further operations.
|
| void | mdbx::txn::renew_reading () |
| | Renew read-only transaction.
|
| txn_managed | mdbx::txn::clone (void *context=nullptr) const |
| | Clone read transaction.
|
| void | mdbx::txn::clone (txn_managed &txn_for_renew_into_clone, void *context=nullptr) const |
| | Renew given read transaction into clone.
|
| void | mdbx::txn::park_reading (bool autounpark=true) |
| | Park read-only transaction.
|
| bool | mdbx::txn::unpark_reading (bool restart_if_ousted=true) |
| | Resume parked read-only transaction.
|
| info | mdbx::txn::get_info (bool scan_reader_lock_table=false) const |
| | Returns information about the MDBX transaction.
|
| cursor_managed | mdbx::txn::open_cursor (map_handle map) const |
| | Opens cursor for specified key-value map handle.
|
| size_t | mdbx::txn::release_all_cursors (bool unbind) const |
| | Unbind or close all cursors.
|
| map_handle | mdbx::txn::open_map (const slice &name, const ::mdbx::key_mode key_mode=::mdbx::key_mode::usual, const ::mdbx::value_mode value_mode=::mdbx::value_mode::single) const |
| | Open existing key-value map.
|
| map_handle | mdbx::txn::open_map (const char *name, const ::mdbx::key_mode key_mode=::mdbx::key_mode::usual, const ::mdbx::value_mode value_mode=::mdbx::value_mode::single) const |
| | Open existing key-value map.
|
| map_handle | mdbx::txn::open_map_accede (const slice &name) const |
| | Open existing key-value map.
|
| map_handle | mdbx::txn::open_map_accede (const char *name) const |
| | Open existing key-value map.
|
| map_handle | mdbx::txn::create_map (const slice &name, const ::mdbx::key_mode key_mode=::mdbx::key_mode::usual, const ::mdbx::value_mode value_mode=::mdbx::value_mode::single) |
| | Create new or open existing key-value map.
|
| map_handle | mdbx::txn::create_map (const char *name, const ::mdbx::key_mode key_mode=::mdbx::key_mode::usual, const ::mdbx::value_mode value_mode=::mdbx::value_mode::single) |
| | Create new or open existing key-value map.
|
| void | mdbx::txn::drop_map (map_handle map) |
| | Drops key-value map using handle.
|
| void | mdbx::txn::clear_map (map_handle map) |
| | Clear key-value map.
|
| void | mdbx::txn::rename_map (map_handle map, const char *new_name) |
| | Переименовывает таблицу ключ-значение.
|
| void | mdbx::txn::rename_map (map_handle map, const slice &new_name) |
| | Переименовывает таблицу ключ-значение.
|
| map_handle | mdbx::txn::open_map (const ::std::string &name, const ::mdbx::key_mode key_mode=::mdbx::key_mode::usual, const ::mdbx::value_mode value_mode=::mdbx::value_mode::single) const |
| | Open existing key-value map.
|
| map_handle | mdbx::txn::open_map_accede (const ::std::string &name) const |
| | Open existing key-value map.
|
| map_handle | mdbx::txn::create_map (const ::std::string &name, const ::mdbx::key_mode key_mode=::mdbx::key_mode::usual, const ::mdbx::value_mode value_mode=::mdbx::value_mode::single) |
| | Create new or open existing key-value map.
|
| bool | mdbx::txn::drop_map (const ::std::string &name, bool throw_if_absent=false) |
| | Drop key-value map.
|
| bool | mdbx::txn::clear_map (const ::std::string &name, bool throw_if_absent=false) |
| void | mdbx::txn::rename_map (map_handle map, const ::std::string &new_name) |
| | Переименовывает таблицу ключ-значение.
|
| map_stat | mdbx::txn::get_map_stat (map_handle map) const |
| | Returns statistics for a table.
|
| uint32_t | mdbx::txn::get_tree_deepmask (map_handle map) const |
| | Returns depth (bitmask) information of nested dupsort (multi-value) B+trees for given table.
|
| map_handle::info | mdbx::txn::get_map_flags (map_handle map) const |
| | Returns information about key-value map (aka table) handle.
|
| txn & | mdbx::txn::put_canary (const canary &) |
| | Set integers markers (aka "canary") associated with the environment.
|
| canary | mdbx::txn::get_canary () const |
| | Returns fours integers markers (aka "canary") associated with the environment.
|
| uint64_t | mdbx::txn::sequence (map_handle map) const |
| | Reads sequence generator associated with a key-value map (aka table).
|
| uint64_t | mdbx::txn::sequence (map_handle map, uint64_t increment) |
| | Reads and increment sequence generator associated with a key-value map (aka table).
|
| int | mdbx::txn::compare_keys (map_handle map, const slice &a, const slice &b) const noexcept |
| | Compare two keys according to a particular key-value map (aka table).
|
| int | mdbx::txn::compare_values (map_handle map, const slice &a, const slice &b) const noexcept |
| | Compare two values according to a particular key-value map (aka table).
|
| int | mdbx::txn::compare_keys (map_handle map, const pair &a, const pair &b) const noexcept |
| | Compare keys of two pairs according to a particular key-value map (aka table).
|
| int | mdbx::txn::compare_values (map_handle map, const pair &a, const pair &b) const noexcept |
| | Compare values of two pairs according to a particular key-value map(aka table).
|
| slice | mdbx::txn::get (map_handle map, const slice &key) const |
| | Get value by key from a key-value map (aka table).
|
| slice | mdbx::txn::get (map_handle map, slice key, size_t &values_count) const |
| | Get first of multi-value and values count by key from a key-value multimap (aka table).
|
| slice | mdbx::txn::get (map_handle map, const slice &key, const slice &value_at_absence) const |
| | Get value by key from a key-value map (aka table).
|
| slice | mdbx::txn::get (map_handle map, slice key, size_t &values_count, const slice &value_at_absence) const |
| | Get first of multi-value and values count by key from a key-value multimap (aka table).
|
| pair_result | mdbx::txn::get_equal_or_great (map_handle map, const slice &key) const |
| | Get value for equal or great key from a table.
|
| pair_result | mdbx::txn::get_equal_or_great (map_handle map, const slice &key, const slice &value_at_absence) const |
| | Get value for equal or great key from a table.
|
| MDBX_error_t | mdbx::txn::put (map_handle map, const slice &key, slice *value, MDBX_put_flags_t flags) noexcept |
| void | mdbx::txn::put (map_handle map, const slice &key, slice value, put_mode mode) |
| void | mdbx::txn::insert (map_handle map, const slice &key, slice value) |
| value_result | mdbx::txn::try_insert (map_handle map, const slice &key, slice value) |
| slice | mdbx::txn::insert_reserve (map_handle map, const slice &key, size_t value_length) |
| value_result | mdbx::txn::try_insert_reserve (map_handle map, const slice &key, size_t value_length) |
| void | mdbx::txn::upsert (map_handle map, const slice &key, const slice &value) |
| slice | mdbx::txn::upsert_reserve (map_handle map, const slice &key, size_t value_length) |
| void | mdbx::txn::update (map_handle map, const slice &key, const slice &value) |
| bool | mdbx::txn::try_update (map_handle map, const slice &key, const slice &value) |
| slice | mdbx::txn::update_reserve (map_handle map, const slice &key, size_t value_length) |
| value_result | mdbx::txn::try_update_reserve (map_handle map, const slice &key, size_t value_length) |
| bool | mdbx::txn::erase (map_handle map, const slice &key) |
| | Removes all values for given key.
|
| bool | mdbx::txn::erase (map_handle map, const slice &key, const slice &value) |
| | Removes the particular multi-value entry of the key.
|
| void | mdbx::txn::replace (map_handle map, const slice &key, slice &old_value, const slice &new_value) |
| | Replaces the particular multi-value of the key with a new value.
|
| template<class BUFFER, class ALLOCATOR = typename BUFFER::allocator_type> |
| BUFFER | mdbx::txn::extract (map_handle map, const slice &key, const ALLOCATOR &alloc=ALLOCATOR()) |
| | Removes and return a value of the key.
|
| template<class BUFFER, class ALLOCATOR = typename BUFFER::allocator_type> |
| BUFFER | mdbx::txn::replace (map_handle map, const slice &key, const slice &new_value, const ALLOCATOR &alloc=ALLOCATOR()) |
| | Replaces and returns a value of the key with new one.
|
| template<class BUFFER, class ALLOCATOR = typename BUFFER::allocator_type> |
| BUFFER | mdbx::txn::replace_reserve (map_handle map, const slice &key, size_t length, slice &new_value_reservation, const ALLOCATOR &alloc=ALLOCATOR()) |
| void | mdbx::txn::append (map_handle map, const slice &key, const slice &value, bool multivalue_order_preserved=true) |
| | Adding a key-value pair, provided that ascending order of the keys and (optionally) values are preserved.
|
| size_t | mdbx::txn::put_multiple_samelength (map_handle map, const slice &key, const size_t value_length, const void *values_array, size_t values_count, put_mode mode, bool allow_partial=false) |
| ptrdiff_t | mdbx::txn::estimate (map_handle map, const pair &from, const pair &to) const |
| ptrdiff_t | mdbx::txn::estimate (map_handle map, const slice &from, const slice &to) const |
| ptrdiff_t | mdbx::txn::estimate_from_first (map_handle map, const slice &to) const |
| ptrdiff_t | mdbx::txn::estimate_to_last (map_handle map, const slice &from) const |
| constexpr | mdbx::cursor::cursor (MDBX_cursor *ptr) noexcept |
| cursor & | mdbx::cursor::assign (const cursor &) |
| cursor & | mdbx::cursor::operator= (cursor &&) noexcept |
| | mdbx::cursor::cursor (cursor &&) noexcept |
| | mdbx::cursor::~cursor () noexcept |
| void * | mdbx::cursor::get_context () const noexcept |
| | Returns the application context associated with the cursor.
|
| cursor & | mdbx::cursor::set_context (void *your_context) |
| | Sets the application context associated with the cursor.
|
| | mdbx::cursor::move_result::move_result (const cursor &cursor, bool throw_notfound) |
| | mdbx::cursor::move_result::move_result (cursor &cursor, move_operation operation, const slice &key, const slice &value, bool throw_notfound) |
| bool | mdbx::cursor::move (move_operation operation, MDBX_val *key, MDBX_val *value, bool throw_notfound) const |
| | mdbx::cursor::estimate_result::estimate_result (const cursor &cursor, move_operation operation, const slice &key, const slice &value) |
| ptrdiff_t | mdbx::cursor::estimate (move_operation operation, MDBX_val *key, MDBX_val *value) const |
| move_result | mdbx::cursor::find (const slice &key, bool throw_notfound=true) |
| move_result | mdbx::cursor::lower_bound (const slice &key, bool throw_notfound=false) |
| move_result | mdbx::cursor::upper_bound (const slice &key, bool throw_notfound=false) |
| move_result | mdbx::cursor::find_multivalue (const slice &key, const slice &value, bool throw_notfound=true) |
| move_result | mdbx::cursor::lower_bound_multivalue (const slice &key, const slice &value, bool throw_notfound=false) |
| move_result | mdbx::cursor::upper_bound_multivalue (const slice &key, const slice &value, bool throw_notfound=false) |
| bool | mdbx::cursor::seek (const slice &key) |
| size_t | mdbx::cursor::count_multivalue () const |
| | Return count of duplicates for current key.
|
| bool | mdbx::cursor::eof () const |
| bool | mdbx::cursor::on_first () const |
| bool | mdbx::cursor::on_last () const |
| bool | mdbx::cursor::on_first_multival () const |
| bool | mdbx::cursor::on_last_multival () const |
| estimate_result | mdbx::cursor::estimate (const slice &key, const slice &value) const |
| estimate_result | mdbx::cursor::estimate (const slice &key) const |
| estimate_result | mdbx::cursor::estimate (move_operation operation) const |
| estimate_result | mdbx::cursor::estimate (move_operation operation, const slice &key) const |
| void | mdbx::cursor::renew (::mdbx::txn &txn) |
| | Renew/bind a cursor with a new transaction and previously used key-value map handle.
|
| void | mdbx::cursor::bind (::mdbx::txn &txn, ::mdbx::map_handle map_handle) |
| | Bind/renew a cursor with a new transaction and specified key-value map handle.
|
| void | mdbx::cursor::unbind () |
| | Unbind cursor from a transaction.
|
| inline ::mdbx::txn | mdbx::cursor::txn () const |
| | Returns the cursor's transaction.
|
| map_handle | mdbx::cursor::map () const |
| MDBX_error_t | mdbx::cursor::put (const slice &key, slice *value, MDBX_put_flags_t flags) noexcept |
| void | mdbx::cursor::put (const slice &key, slice value, put_mode mode) |
| void | mdbx::cursor::insert (const slice &key, slice value) |
| value_result | mdbx::cursor::try_insert (const slice &key, slice value) |
| slice | mdbx::cursor::insert_reserve (const slice &key, size_t value_length) |
| value_result | mdbx::cursor::try_insert_reserve (const slice &key, size_t value_length) |
| void | mdbx::cursor::upsert (const slice &key, const slice &value) |
| slice | mdbx::cursor::upsert_reserve (const slice &key, size_t value_length) |
| void | mdbx::cursor::update (const slice &key, const slice &value) |
| bool | mdbx::cursor::try_update (const slice &key, const slice &value) |
| slice | mdbx::cursor::update_reserve (const slice &key, size_t value_length) |
| value_result | mdbx::cursor::try_update_reserve (const slice &key, size_t value_length) |
| bool | mdbx::cursor::erase (bool whole_multivalue=false) |
| | Removes single key-value pair or all multi-values at the current cursor position.
|
| bool | mdbx::cursor::erase (const slice &key, bool whole_multivalue=true) |
| | Seeks and removes first value or whole multi-value of the given key.
|
| bool | mdbx::cursor::erase (const slice &key, const slice &value) |
| | Seeks and removes the particular multi-value entry of the key.
|
| size_t | mdbx::cursor::put_multiple_samelength (const slice &key, const size_t value_length, const void *values_array, size_t values_count, put_mode mode, bool allow_partial=false) |
| static ptrdiff_t | mdbx::cursor::distance_between (const cursor from, const cursor to, unsigned deepness=42) |
| bool | mdbx::cursor::scroll (intptr_t distable, unsigned deepness=42, bool throw_notfound=true) |
| static bool | mdbx::cursor::distribute (const cursor from, const cursor to, cursor *cursors_array, intptr_t cursors_array_size, unsigned deepness=42) |
| static bool | mdbx::cursor::distribute (const cursor from, const cursor to, const std::vector< cursor > &cursors, unsigned deepness=42) |
| static bool | mdbx::cursor::distribute (const cursor from, const cursor to, const std::vector< cursor_managed > &cursors, unsigned deepness=42) |