libmdbx-0.2.1.1: Bindings for libmdbx, an embedded key/value store
Copyright(c) 2021 Francisco Vallarino
LicenseBSD-3-Clause (see the LICENSE file)
Maintainerfjvallarino@gmail.com
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Mdbx.Store

Description

Instances and helpers to derive MdbxItem for Store instances.

Synopsis

Documentation

newtype MdbxItemStore a Source #

Helper type to derive MdbxItem instances for types implementing Store using the newtype deriving trick.

Constructors

MdbxItemStore 

Fields

Instances

Instances details
Store a => MdbxItem (MdbxItemStore a) Source # 
Instance details

Defined in Mdbx.Store

fromMdbxStore :: Store v => MdbxVal -> IO v Source #

Deserializes a Store instance from an MdbxVal.

withMdbxStore :: Store v => v -> (MdbxVal -> IO a) -> IO a Source #

Serializes a Store instance to MdbxVal, and passes it to a callback.

Orphan instances