Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- type LockFileHash = ByteString
- expectedVersion :: Int
- transactionLogFileName :: FilePath
- transactionLogPath :: FilePath -> FilePath
- headsPath :: FilePath -> FilePath
- lockFilePath :: FilePath -> FilePath
- checkForOtherVersions :: FilePath -> IO (Either PersistenceError ())
- setupDatabaseDir :: DiskSync -> FilePath -> TransactionGraph -> IO (Either PersistenceError (LockFile, LockFileHash))
- bootstrapDatabaseDir :: DiskSync -> FilePath -> TransactionGraph -> IO (LockFile, LockFileHash)
- transactionGraphPersist :: DiskSync -> FilePath -> [TransactionId] -> TransactionGraph -> IO LockFileHash
- transactionsPersist :: DiskSync -> [TransactionId] -> FilePath -> TransactionGraph -> IO ()
- transactionGraphHeadsPersist :: DiskSync -> FilePath -> TransactionGraph -> IO ()
- transactionGraphHeadsLoad :: FilePath -> IO [(HeadName, TransactionId)]
- transactionGraphLoad :: FilePath -> TransactionGraph -> Maybe ScriptSession -> IO (Either PersistenceError TransactionGraph)
- readTransactionIfNecessary :: FilePath -> TransactionId -> Maybe ScriptSession -> TransactionGraph -> IO (Either PersistenceError TransactionGraph)
- writeGraphTransactionIdFile :: DiskSync -> FilePath -> TransactionGraph -> IO LockFileHash
- readGraphTransactionIdFileDigest :: FilePath -> IO LockFileHash
- readGraphTransactionIdFile :: FilePath -> IO (Either PersistenceError [(TransactionId, UTCTime, [TransactionId])])
- readUTF8FileOrError :: FilePath -> IO Text
Documentation
type LockFileHash = ByteString Source #
lockFilePath :: FilePath -> FilePath Source #
checkForOtherVersions :: FilePath -> IO (Either PersistenceError ()) Source #
setupDatabaseDir :: DiskSync -> FilePath -> TransactionGraph -> IO (Either PersistenceError (LockFile, LockFileHash)) Source #
bootstrapDatabaseDir :: DiskSync -> FilePath -> TransactionGraph -> IO (LockFile, LockFileHash) Source #
transactionGraphPersist :: DiskSync -> FilePath -> [TransactionId] -> TransactionGraph -> IO LockFileHash Source #
transactionsPersist :: DiskSync -> [TransactionId] -> FilePath -> TransactionGraph -> IO () Source #
The incremental writer writes the transactions ids specified by the second argument.
transactionGraphHeadsPersist :: DiskSync -> FilePath -> TransactionGraph -> IO () Source #
transactionGraphHeadsLoad :: FilePath -> IO [(HeadName, TransactionId)] Source #
transactionGraphLoad :: FilePath -> TransactionGraph -> Maybe ScriptSession -> IO (Either PersistenceError TransactionGraph) Source #
readTransactionIfNecessary :: FilePath -> TransactionId -> Maybe ScriptSession -> TransactionGraph -> IO (Either PersistenceError TransactionGraph) Source #
readGraphTransactionIdFile :: FilePath -> IO (Either PersistenceError [(TransactionId, UTCTime, [TransactionId])]) Source #