acid-state-0.16.0: Add ACID guarantees to any serializable Haskell data structure.
Data.Acid.Log
data FileLog object Source #
Constructors
Fields
data LogKey object Source #
type EntryId = Int Source #
openFileLog :: LogKey object -> IO (FileLog object) Source #
closeFileLog :: FileLog object -> IO () Source #
pushEntry :: FileLog object -> object -> IO () -> IO () Source #
pushAction :: FileLog object -> IO () -> IO () Source #
ensureLeastEntryId :: FileLog object -> EntryId -> IO () Source #
readEntriesFrom :: FileLog object -> EntryId -> IO [object] Source #
rollbackTo :: LogKey object -> EntryId -> IO () Source #
rollbackWhile :: LogKey object -> (object -> Bool) -> IO () Source #
newestEntry :: LogKey object -> IO (Maybe object) Source #
askCurrentEntryId :: FileLog object -> IO EntryId Source #
cutFileLog :: FileLog object -> IO EntryId Source #
archiveFileLog :: FileLog object -> EntryId -> IO () Source #
findLogFiles :: LogKey object -> IO [(EntryId, FilePath)] Source #