liszt-0.1: Append only key-list database

Safe HaskellNone
LanguageHaskell2010

Database.Liszt

Contents

Synopsis

Documentation

withLiszt :: (MonadIO m, MonadMask m) => FilePath -> (LisztHandle -> m a) -> m a Source #

Writer interface

type Tag = Encoding Source #

Tag is an extra value attached to a payload. This can be used to perform a binary search.

clear :: Key -> Transaction () Source #

Replace the specified key with an empty list.

insert :: Serialise a => Key -> a -> Transaction () Source #

Insert a value.

insertTagged :: (Serialise t, Serialise a) => Key -> t -> a -> Transaction () Source #

Insert a value with a tag (e.g. timestamp). Tags can be used to perform WineryTag query. Tag values should be monotonically increasing but this is not checked.

commitFile :: FilePath -> Transaction a -> IO a Source #

Commit a Transaction to a file.

Reader

data Offset Source #

data Request Source #

Constructors

Request 

Fields

Instances
Show Request Source # 
Instance details

Defined in Database.Liszt.Tracker

Generic Request Source # 
Instance details

Defined in Database.Liszt.Tracker

Associated Types

type Rep Request :: * -> * #

Methods

from :: Request -> Rep Request x #

to :: Rep Request x -> Request #

Serialise Request Source # 
Instance details

Defined in Database.Liszt.Tracker

type Rep Request Source # 
Instance details

Defined in Database.Liszt.Tracker