mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
docs: misc mdbx docs (#5599)
Co-authored-by: Roman Krasiuk <rokrassyuk@gmail.com>
This commit is contained in:
@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user