| Copyright | (c) Max Amanshauser 2016 |
|---|---|
| License | MIT |
| Maintainer | max@lambdalifting.org |
| Safe Haskell | Safe |
| Language | Haskell2010 |
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 #
Instances
| FSMKey k => WALStore PostgresJSONStore k Source # | |
Defined in Mealstrom.PostgresJSONStore Methods 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 Methods 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.0-1iE9qiPdHB2KeFDL81oqg9" 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)))) | |