docs: misc mdbx docs (#5599)

Co-authored-by: Roman Krasiuk <rokrassyuk@gmail.com>
This commit is contained in:
Matthias Seitz
2023-11-28 10:46:47 +01:00
committed by GitHub
parent 608f100605
commit b6ce3bc999

View File

@ -128,6 +128,10 @@ impl From<Mode> for EnvironmentFlags {
pub struct EnvironmentFlags {
pub no_sub_dir: bool,
pub exclusive: bool,
/// Flag is intended to open an existing sub-database which was created with unknown flags
/// In such cases, instead of returning the `MDBX_INCOMPATIBLE` error, the sub-database will be
/// opened with flags which it was created, and then an application could determine the actual
/// flags.
pub accede: bool,
pub mode: Mode,
pub no_rdahead: bool,
@ -137,6 +141,7 @@ pub struct EnvironmentFlags {
}
impl EnvironmentFlags {
/// Configures the mdbx flags to use when opening the environment.
pub(crate) fn make_flags(&self) -> ffi::MDBX_env_flags_t {
let mut flags = 0;