2#ifndef _MDBX_CONTAINERS_CONFIG_HPP_INCLUDED
3#define _MDBX_CONTAINERS_CONFIG_HPP_INCLUDED
41 return !
pathname.empty() && page_ok && size_ok;
Parameters used by Connection to create the MDBX environment.
bool validate() const
Validate the MDBX configuration.
int64_t size_now
Current size of the database.
bool no_subdir
Whether to store the database in a single file instead of a directory.
int64_t max_readers
Maximum reader slots; use 0 for the default (twice the CPU count).
int64_t shrink_threshold
Threshold for database shrinking.
bool readahead
Whether to enable OS readahead for sequential access.
bool sync_durable
Whether to enforce synchronous durable writes (MDBX_SYNC_DURABLE).
int64_t size_lower
Lower bound for database size.
bool writemap_mode
Whether to map the database with MDBX_WRITEMAP for direct modification.
std::string pathname
Path to the database file or directory containing the database.
int64_t growth_step
Step size for database growth.
int64_t page_size
Page size (must be a power of two).
int64_t size_upper
Upper bound for database size.
bool read_only
Whether to open the environment in read-only mode.
bool relative_to_exe
Whether to resolve a relative path relative to the executable directory.
int64_t max_dbs
Maximum number of named databases (DBI) in the environment.