lmdb-high-level-0.1: Higher level API for working with LMDB

Safe HaskellNone
LanguageHaskell2010

Lmdb.Internal

Synopsis

Documentation

withKVPtrsNoInit :: (Ptr MDB_val -> Ptr MDB_val -> IO a) -> IO a Source #

Alternative to withKVPtrs that allows us to not initialize the key or the value.

mdb_dbi_open_X :: Bool -> MDB_txn -> Maybe String -> [MDB_DbFlag] -> IO DbiByFfi Source #

This one is a little different. The first argument is a Bool that is True if we want we use safe FFI calls and False if we want unsafe FFI calls.

decodeOne :: (CSize -> Ptr Word8 -> IO a) -> Bool -> Ptr MDB_val -> IO (Maybe a) Source #

decodeOne' :: (CSize -> Ptr Word8 -> IO a) -> Bool -> Ptr MDB_val -> Ptr MDB_val -> IO (Maybe a) Source #

getWithKey :: MDB_cursor_op -> Cursor e k v -> k -> IO (Maybe (KeyValue k v)) Source #

getWithKeyGeneral :: (Bool -> Ptr MDB_val -> Ptr MDB_val -> IO a) -> MDB_cursor_op -> Cursor e k v -> k -> IO a Source #