flaw-lmdb-0.1.0.0

LicenseMIT
Safe HaskellNone
LanguageHaskell2010

Flaw.Data.Lmdb

Description

 
Synopsis

Documentation

lmdbOpen :: Text -> Word64 -> IO (Lmdb, IO ()) Source #

Open LMDB environment.

lmdbRead :: Lmdb -> (LmdbTransaction -> IO a) -> IO a Source #

Run read transaction.

lmdbWrite :: Lmdb -> (LmdbTransaction -> IO a) -> IO a Source #

Run write transaction.

lmdbFoldPrefixRange :: LmdbTransaction -> ByteString -> a -> (ByteString -> ByteString -> a -> IO (Bool, a)) -> IO a Source #

Fold key-values pairs prefixed with specified prefix.