mealstrom-0.0.0.1: Manipulate FSMs and store them in PostgreSQL.

Copyright(c) Max Amanshauser 2016
LicenseMIT
Maintainermax@lambdalifting.org
Safe HaskellSafe
LanguageHaskell2010

Mealstrom.WALStore

Description

A WALStore is anything being able to store WALEntries. WALEntries indicate how often a recovery process has been started for an instance.

Documentation

class WALStore st k where Source #

Minimal complete definition

walUpsertIncrement, walDecrement, walScan

Methods

walUpsertIncrement :: st -> k -> IO () Source #

walDecrement :: st -> k -> IO () Source #

walScan :: st -> Int -> IO [WALEntry k] Source #

data WALEntry k Source #

Constructors

WALEntry 

Fields

Instances

Eq k => Eq (WALEntry k) Source # 

Methods

(==) :: WALEntry k -> WALEntry k -> Bool #

(/=) :: WALEntry k -> WALEntry k -> Bool #

Show k => Show (WALEntry k) Source # 

Methods

showsPrec :: Int -> WALEntry k -> ShowS #

show :: WALEntry k -> String #

showList :: [WALEntry k] -> ShowS #

type Rep (WALEntry k) Source # 
type Rep (WALEntry k) = D1 (MetaData "WALEntry" "Mealstrom.WALStore" "mealstrom-0.0.0.1-KyQkyZ1pogZ8aiEUm4n6QB" False) (C1 (MetaCons "WALEntry" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "walId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 k)) ((:*:) (S1 (MetaSel (Just Symbol "walTime") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 UTCTime)) (S1 (MetaSel (Just Symbol "walCount") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))))

openTxn :: WALStore st k => st -> k -> IO () Source #

closeTxn :: WALStore st k => st -> k -> IO () Source #