mdb/lmdb_flags.rs

heed · heed/src/mdb/lmdb_flags.rs · rust · MIT
database, Database / ORM

Rust bitflags for LMDB environment and database flags used by the heed crate.

// Source: https://github.com/meilisearch/heed | License: MIT | Copyright 2019 Clément Renault
// Provided via justclaw.it.com; keep this notice with the code.
use bitflags::bitflags;
#[cfg(master3)]
use lmdb_master3_sys as ffi;
#[cfg(not(master3))]
use lmdb_master_sys as ffi;

#[allow(unused)] // for cargo auto doc links
use crate::{Database, IntegerComparator};

bitflags! {
    /// LMDB environment flags (see <http://www.lmdb.tech/doc/group__mdb__env.html> for more details).
    #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
    #[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
    #[repr(transparent)]
    pub struct EnvFlags: u32 {
        /// mmap at a fixed address (experimental).
        const FIXED_MAP = ffi::MDB_FIXEDMAP;
        /// 

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key