Safe Haskell | None |
---|---|
Language | Haskell2010 |
- type LockFileHash = ByteString
- transactionLogPath :: FilePath -> FilePath
- headsPath :: FilePath -> FilePath
- lockFilePath :: FilePath -> FilePath
- setupDatabaseDir :: DiskSync -> FilePath -> TransactionGraph -> IO (Either PersistenceError (Handle, LockFileHash))
- bootstrapDatabaseDir :: DiskSync -> FilePath -> TransactionGraph -> IO (Handle, LockFileHash)
- openLockFile :: FilePath -> IO Handle
- transactionGraphPersist :: DiskSync -> FilePath -> TransactionGraph -> IO LockFileHash
- transactionHeadTransactionsPersist :: DiskSync -> 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, [TransactionId])])
Documentation
type LockFileHash = ByteString Source #
lockFilePath :: FilePath -> FilePath Source #
setupDatabaseDir :: DiskSync -> FilePath -> TransactionGraph -> IO (Either PersistenceError (Handle, LockFileHash)) Source #
bootstrapDatabaseDir :: DiskSync -> FilePath -> TransactionGraph -> IO (Handle, LockFileHash) Source #
transactionGraphPersist :: DiskSync -> FilePath -> TransactionGraph -> IO LockFileHash Source #
transactionHeadTransactionsPersist :: DiskSync -> FilePath -> TransactionGraph -> IO () Source #
The incremental writer which only writes from the set of heads. New heads must be written on every commit. Most heads will already be written on every commit.
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, [TransactionId])]) Source #