|
| 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 byte * | mdbx::slice::end () const noexcept |
| | Return a pointer to the end of the referenced data.
|
| constexpr void * | mdbx::slice::data () noexcept |
| constexpr byte * | mdbx::slice::end () noexcept |
| | Return a pointer to the end of the referenced data.
|
| 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 |
| | Invalidates the slice by nullifying the data pointer while preserving the length; makes is_valid() return false unless the slice was already of zero length.
|
| 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 const byte * | mdbx::slice::begin () const noexcept |
| | Returns an iterator to the beginning of the referenced data.
|
| constexpr byte * | mdbx::slice::begin () noexcept |
| | Returns an iterator to the beginning of the referenced data.
|
| constexpr size_t | mdbx::slice::find (const slice &needle, size_t pos=0) const noexcept |
| | Finds the first occurrence of needle starting at pos.
|
| constexpr size_t | mdbx::slice::find (byte c, size_t pos=0) const noexcept |
| | Finds the first occurrence of needle starting at pos.
|
| constexpr size_t | mdbx::slice::rfind (const slice &needle, size_t pos=npos) const noexcept |
| | Finds the last occurrence of needle not after pos.
|
| constexpr size_t | mdbx::slice::rfind (byte c, size_t pos=npos) const noexcept |
| | Finds the last occurrence of needle not after pos.
|
| constexpr size_t | mdbx::slice::find_first_of (const slice &chars, size_t pos=0) const noexcept |
| | Finds the first byte matching any byte of chars starting at pos.
|
| constexpr size_t | mdbx::slice::find_first_of (byte c, size_t pos=0) const noexcept |
| | Finds the first byte matching any byte of chars starting at pos.
|
| constexpr size_t | mdbx::slice::find_last_of (const slice &chars, size_t pos=npos) const noexcept |
| | Finds the last byte matching any byte of chars not after pos.
|
| constexpr size_t | mdbx::slice::find_last_of (byte c, size_t pos=npos) const noexcept |
| | Finds the last byte matching any byte of chars not after pos.
|
| constexpr size_t | mdbx::slice::find_first_not_of (const slice &chars, size_t pos=0) const noexcept |
| | Finds the first byte not matching any byte of chars starting at pos.
|
| constexpr size_t | mdbx::slice::find_first_not_of (byte c, size_t pos=0) const noexcept |
| | Finds the first byte not matching any byte of chars starting at pos.
|
| constexpr size_t | mdbx::slice::find_last_not_of (const slice &chars, size_t pos=npos) const noexcept |
| | Finds the last byte not matching any byte of chars not after pos.
|
| constexpr size_t | mdbx::slice::find_last_not_of (byte c, size_t pos=npos) const noexcept |
| | Finds the last byte not matching any byte of chars not after pos.
|
| 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 Base64 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 |
| constexpr geometry & | mdbx::env::geometry::make_fixed (intptr_t size) noexcept |
| constexpr geometry & | mdbx::env::geometry::make_dynamic (intptr_t lower=default_value, intptr_t upper=default_value) noexcept |
| constexpr geometry & | mdbx::env::geometry::set_size_lower (intptr_t size) noexcept |
| | Sets the lower bound of database size in bytes.
|
| constexpr geometry & | mdbx::env::geometry::set_size_now (intptr_t size) noexcept |
| | Sets the size in bytes to setup the database size for now.
|
| constexpr geometry & | mdbx::env::geometry::set_size_upper (intptr_t size) noexcept |
| | Sets the upper bound of database size in bytes.
|
| constexpr geometry & | mdbx::env::geometry::set_growth_step (intptr_t step) noexcept |
| | Sets the growth step in bytes.
|
| constexpr geometry & | mdbx::env::geometry::set_shrink_threshold (intptr_t threshold) noexcept |
| | Sets the shrink threshold in bytes.
|
| constexpr geometry & | mdbx::env::geometry::set_pagesize (intptr_t size) noexcept |
| | Sets the database page size for new database creation.
|
| static MDBX_NODISCARD env::reclaiming_options | mdbx::env::operate_parameters::reclaiming_from_flags (MDBX_env_flags_t flags) noexcept |
| static MDBX_NODISCARD env::operate_options | mdbx::env::operate_parameters::options_from_flags (MDBX_env_flags_t flags) noexcept |
| constexpr create_parameters & | mdbx::env_managed::create_parameters::set_geometry (const env::geometry &value) noexcept |
| | Sets the database geometry for size management.
|
| constexpr create_parameters & | mdbx::env_managed::create_parameters::set_file_mode_bits (mdbx_mode_t value) noexcept |
| | Sets the file mode bits used for creation of the DB files.
|
| constexpr create_parameters & | mdbx::env_managed::create_parameters::set_use_subdirectory (bool value=true) noexcept |
| | Sets whether to use a subdirectory to place the DB files.
|
| constexpr operate_parameters & | mdbx::env::operate_parameters::set_max_maps (unsigned value) noexcept |
| | Sets the maximum number of named tables/maps for the environment. Zero means default value.
|
| constexpr operate_parameters & | mdbx::env::operate_parameters::set_max_readers (unsigned value) noexcept |
| | Sets the maximum number of threads/reader slots for the environment. Zero means default value.
|
| constexpr operate_parameters & | mdbx::env::operate_parameters::set_mode (env::mode value) noexcept |
| | Sets the operation mode.
|
| constexpr operate_parameters & | mdbx::env::operate_parameters::set_durability (env::durability value) noexcept |
| | Sets the durability level.
|
| constexpr operate_parameters & | mdbx::env::operate_parameters::set_reclaiming (const env::reclaiming_options &value) noexcept |
| | Sets the garbage reclaiming options.
|
| constexpr operate_parameters & | mdbx::env::operate_parameters::set_options (const env::operate_options &value) noexcept |
| | Sets the operate options.
|
| constexpr operate_parameters & | mdbx::env::operate_parameters::readonly () noexcept |
| | Sets the operation mode to env::mode::readonly.
|
| constexpr operate_parameters & | mdbx::env::operate_parameters::write_file_io () noexcept |
| | Sets the operation mode to env::mode::write_file_io.
|
| constexpr operate_parameters & | mdbx::env::operate_parameters::write_mapped_io () noexcept |
| | Sets the operation mode to env::mode::write_mapped_io.
|
| constexpr operate_parameters & | mdbx::env::operate_parameters::robust_synchronous () noexcept |
| | Sets the durability level to env::durability::robust_synchronous.
|
| constexpr operate_parameters & | mdbx::env::operate_parameters::half_synchronous_weak_last () noexcept |
| | Sets the durability level to env::durability::half_synchronous_weak_last.
|
| constexpr operate_parameters & | mdbx::env::operate_parameters::lazy_weak_tail () noexcept |
| | Sets the durability level to env::durability::lazy_weak_tail.
|
| constexpr operate_parameters & | mdbx::env::operate_parameters::whole_fragile () noexcept |
| | Sets the durability level to env::durability::whole_fragile.
|
| constexpr operate_parameters & | mdbx::env::operate_parameters::nested_transactions (bool value=true) noexcept |
| | Sets the nested transactions mode, i.e. operate_options::nested_transactions.
|
| constexpr operate_parameters & | mdbx::env::operate_parameters::lifo (bool value=true) noexcept |
| | Sets the LIFO reclaiming mode, i.e. reclaiming_options::lifo.
|
| constexpr operate_parameters & | mdbx::env::operate_parameters::no_sticky_threads (bool value=true) noexcept |
| | Sets the "no sticky threads" mode, i.e. operate_options::no_sticky_threads.
|
| constexpr operate_parameters & | mdbx::env::operate_parameters::exclusive (bool value=true) noexcept |
| | Sets the exclusive mode, i.e. operate_options::exclusive.
|
| constexpr operate_parameters & | mdbx::env::operate_parameters::disable_readahead (bool value=true) noexcept |
| | Sets the readahead disable mode, i.e. operate_options::disable_readahead.
|
| constexpr operate_parameters & | mdbx::env::operate_parameters::disable_clear_memory (bool value=true) noexcept |
| | Sets the clear-memory disable mode, i.e. operate_options::disable_clear_memory.
|
| constexpr operate_parameters & | mdbx::env::operate_parameters::enable_validation (bool value=true) noexcept |
| | Sets the validation enable mode, i.e. operate_options::enable_validation.
|
| static constexpr operate_parameters | mdbx::env::operate_parameters::read_only () noexcept |
| | Constructs parameters for a read-only environment.
|
| static constexpr operate_parameters | mdbx::env::operate_parameters::safe_write () noexcept |
| | Constructs parameters for a writable environment with env::durability::robust_synchronous durability and env::mode::write_mapped_io.
|
| static constexpr operate_parameters | mdbx::env::operate_parameters::lazy_write () noexcept |
| | Constructs parameters for a writable environment with env::durability::lazy_weak_tail durability and env::mode::write_mapped_io.
|
| static constexpr operate_parameters | mdbx::env::operate_parameters::fragile_write () noexcept |
| | Constructs parameters for a writable environment with env::durability::whole_fragile durability and env::mode::write_mapped_io.
|
| constexpr reclaiming_options & | mdbx::env::reclaiming_options::set_lifo (bool value=true) noexcept |
| | Sets the LIFO reclaiming mode.
|
| constexpr operate_options & | mdbx::env::operate_options::set_no_sticky_threads (bool value=true) noexcept |
| | Sets the "no sticky threads" mode.
|
| constexpr operate_options & | mdbx::env::operate_options::set_nested_transactions (bool value=true) noexcept |
| | Sets the nested transactions mode.
|
| constexpr operate_options & | mdbx::env::operate_options::set_exclusive (bool value=true) noexcept |
| | Sets the exclusive mode.
|
| constexpr operate_options & | mdbx::env::operate_options::set_disable_readahead (bool value=true) noexcept |
| | Sets the readahead disable mode.
|
| constexpr operate_options & | mdbx::env::operate_options::set_disable_clear_memory (bool value=true) noexcept |
| | Sets the clear-memory disable mode.
|
| constexpr operate_options & | mdbx::env::operate_options::set_enable_validation (bool value=true) noexcept |
| | Sets the validation enable mode.
|
| 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 given environment 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 page 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 given environment 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 given environment 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.
|
| MDBX_NODISCARD env::operate_parameters | mdbx::env::get_operation_parameters () const |
| | Returns current operation parameters.
|
| MDBX_NODISCARD env::mode | mdbx::env::get_mode () const |
| | Returns current operation mode.
|
| MDBX_NODISCARD env::durability | mdbx::env::get_durability () const |
| | Returns current durability mode.
|
| MDBX_NODISCARD env::reclaiming_options | mdbx::env::get_reclaiming () const |
| | Returns current reclaiming options.
|
| MDBX_NODISCARD 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.
|
| MDBX_NODISCARD MDBX_chk_context_t & | mdbx::env::chk (MDBX_chk_context_t &ctx, const MDBX_chk_callbacks_t *cb=nullptr, MDBX_chk_flags_t flags=MDBX_CHK_DEFAULTS, MDBX_chk_severity_t verbosity=MDBX_chk_info, unsigned timeout_seconds_16dot16=0) const |
| | Checks the integrity of the environment (database).
|
| static MDBX_NODISCARD sysraminfo | mdbx::env::get_sysraminfo () |
| | Returns information about the system RAM.
|
| static MDBX_NODISCARD info | mdbx::env::get_preopen_snapinfo (const ::std::string &pathname) |
| | Provides information about a database, including meta-page and geometry, without opening it.
|
| static MDBX_NODISCARD info | mdbx::env::get_preopen_snapinfo (const char *pathname) |
| static MDBX_NODISCARD info | mdbx::env::get_preopen_snapinfo (const ::mdbx::filesystem::path &pathname) |
| void | mdbx::env::thread_register () |
| | Registers the current thread as a reader for the environment, i.e. assigns a reader slot.
|
| void | mdbx::env::thread_unregister () |
| | Unregisters the current thread, i.e. releases its reader slot.
|
| MDBX_NODISCARD int | mdbx::env::warmup (MDBX_warmup_flags_t flags, unsigned timeout_seconds_16dot16, const MDBX_txn *txn=nullptr) const |
| | Loads into memory the given pages of the database and their on-disk neighbours in advance.
|
| void | mdbx::env::resurrect_after_fork () |
| | Restores the environment after fork(), dropping all read-write locks and reader slots of the parent process.
|
| void | mdbx::env::turn_for_recovery (unsigned target_meta) |
| | Turns the database to the specified meta-page.
|
| 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.
|
| bool | mdbx::env::txn_lock (bool dont_wait=false) |
| | Acquires write-transaction lock.
|
| void | mdbx::env::txn_unlock () |
| | Releases write-transaction lock acquired by txn_lock().
|
| template<typename VISITOR> |
| defrag_result | mdbx::env::defrag (VISITOR &visitor, size_t defrag_atleast=0, size_t time_atleast_dot16=0, size_t defrag_enough=0, size_t time_limit_dot16=0, intptr_t acceptable_backlash=-1, intptr_t preferred_batch=0) |
| | Performs database defragmentation.
|
| defrag_result | mdbx::env::defrag (size_t defrag_atleast=0, size_t time_atleast_dot16=0, size_t defrag_enough=0, size_t time_limit_dot16=0, intptr_t acceptable_backlash=-1, intptr_t preferred_batch=0) |
| | Performs database defragmentation without a progress visitor.
|
| 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.
|
| bool | mdbx::txn::refresh () |
| | Refresh the read-only transaction to the most recent snapshot.
|
| void | mdbx::txn::copy (const char *destination, bool compactify, bool force_dynamic_size=false) |
| | Copy an MVCC-snapshot of the database to the destination path.
|
| void | mdbx::txn::copy (const ::std::string &destination, bool compactify, bool force_dynamic_size=false) |
| | Copy an MVCC-snapshot of the database to the destination path.
|
| void | mdbx::txn::copy (const ::mdbx::filesystem::path &destination, bool compactify, bool force_dynamic_size=false) |
| | Copy an MVCC-snapshot of the database to the destination path.
|
| void | mdbx::txn::copy (filehandle fd, bool compactify, bool force_dynamic_size=false) |
| | Copy an MVCC-snapshot of the database to the given file handle.
|
| 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.
|
| template<typename VISITOR> |
| int | mdbx::txn::enumerate_tables (VISITOR &visitor) const |
| | Enumerates user's named tables in a database.
|
| template<typename VISITOR> |
| gc_info | mdbx::txn::get_gc_info (VISITOR &visitor) const |
| | Provides information of Garbage Collection and page usage.
|
| gc_info | mdbx::txn::get_gc_info () const |
| txn & | mdbx::txn::put_canary (const canary &) |
| | Set integers markers (aka "canary") associated with the environment.
|
| canary | mdbx::txn::get_canary () const |
| | Returns the four integer 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).
|
| MDBX_NODISCARD cache_result | mdbx::txn::get_cached (map_handle map, const slice &key, slice *data, cache_entry &entry) const |
| | Gets a value by key using the transparent read-your-writes cache.
|
| MDBX_NODISCARD slice | mdbx::txn::get_cached (map_handle map, const slice &key, cache_entry &entry, cache_status *status=nullptr) const |
| | Gets a value by key using the transparent read-your-writes cache, throwing exceptions on errors.
|
| 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 |
| | Gets the value for an equal or greater key from a table.
|
| pair_result | mdbx::txn::get_equal_or_great (map_handle map, const slice &key, const slice &value_at_absence) const |
| | Gets the value for an equal or greater 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.
|
| size_t | mdbx::cursor::count_multivalue (MDBX_stat *stat) const |
| | Return count of duplicates for current key, along with basic statistics of the table.
|
| inline ::std::vector< pair > | mdbx::cursor::get_batch (size_t max_pairs, move_operation op, bool *is_last=nullptr) const |
| | Reads a batch of key-value pairs.
|
| void | mdbx::cursor::ignore_key_order () |
| | Disables the control of the order of keys when reading database pages for this cursor.
|
| 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::erase_bunch (bunch_delete action) |
| | Quickly removes bunches of neighboring items much faster by cutting out entire pages and branches from the B+ tree structure.
|
| size_t | mdbx::cursor::erase_range (const cursor &end, bool end_including) |
| | Quickly removes a range of items between the current cursor position and the position of end much faster by cutting out entire pages and branches from the B+ tree structure.
|
| void | mdbx::cursor::reset () |
| | Resets the cursor state.
|
| 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) |