Copyright | (c) Max Amanshauser 2016 |
---|---|
License | MIT |
Maintainer | max@lambdalifting.org |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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 #
walUpsertIncrement :: st -> k -> IO () Source #
walDecrement :: st -> k -> IO () Source #
Instances
FSMKey k => WALStore PostgresJSONStore k Source # | |
Defined in Mealstrom.PostgresJSONStore walUpsertIncrement :: PostgresJSONStore -> k -> IO () Source # walDecrement :: PostgresJSONStore -> k -> IO () Source # walScan :: PostgresJSONStore -> Int -> IO [WALEntry k] Source # | |
WALStore (MemoryStore k s e a) k Source # | |
Defined in Mealstrom.MemoryStore walUpsertIncrement :: MemoryStore k s e a -> k -> IO () Source # walDecrement :: MemoryStore k s e a -> k -> IO () Source # walScan :: MemoryStore k s e a -> Int -> IO [WALEntry k] Source # |
Instances
Eq k => Eq (WALEntry k) Source # | |
Show k => Show (WALEntry k) Source # | |
FSMKey k => Generic (WALEntry k) Source # | |
FSMKey k => FromRow (WALEntry k) Source # | |
Defined in Mealstrom.PostgresJSONStore | |
type Rep (WALEntry k) Source # | |
Defined in Mealstrom.PostgresJSONStore type Rep (WALEntry k) = D1 ('MetaData "WALEntry" "Mealstrom.WALStore" "mealstrom-0.0.1.1-8m4QeTDuQN8CBXSSOFNKH6" 'False) (C1 ('MetaCons "WALEntry" 'PrefixI 'True) (S1 ('MetaSel ('Just "walId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 k) :*: (S1 ('MetaSel ('Just "walTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UTCTime) :*: S1 ('MetaSel ('Just "walCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))) |