Safe Haskell | None |
---|---|
Language | Haskell2010 |
- openDB :: FilePath -> IO WorkflowDB
- closeDB :: WorkflowDB -> IO ()
- readData :: DBData r => PID -> WorkflowDB -> IO r
- readDataByteString :: PID -> WorkflowDB -> IO ByteString
- saveDataByteString :: PID -> ByteString -> WorkflowDB -> IO ()
- saveData :: DBData r => PID -> r -> WorkflowDB -> IO ()
- updateData :: DBData r => PID -> r -> WorkflowDB -> IO ()
- delRecord :: PID -> WorkflowDB -> IO ()
- isFinished :: PID -> WorkflowDB -> IO Bool
- getKeys :: WorkflowDB -> IO [PID]
- newtype WorkflowDB = WorkflowDB Connection
- type DBData a = (FromJSON a, ToJSON a, Serialize a)
- serialize :: DBData a => a -> ByteString
- deserialize :: DBData a => ByteString -> a
- readYaml :: DBData a => ByteString -> a
- showYaml :: DBData a => a -> ByteString
Documentation
closeDB :: WorkflowDB -> IO () Source #
readDataByteString :: PID -> WorkflowDB -> IO ByteString Source #
saveDataByteString :: PID -> ByteString -> WorkflowDB -> IO () Source #
updateData :: DBData r => PID -> r -> WorkflowDB -> IO () Source #
delRecord :: PID -> WorkflowDB -> IO () Source #
isFinished :: PID -> WorkflowDB -> IO Bool Source #
getKeys :: WorkflowDB -> IO [PID] Source #
newtype WorkflowDB Source #
An abstract type representing the database used to store states of workflow
type DBData a = (FromJSON a, ToJSON a, Serialize a) Source #
DBData
constraint is used for data serialization.
serialize :: DBData a => a -> ByteString Source #
deserialize :: DBData a => ByteString -> a Source #
readYaml :: DBData a => ByteString -> a Source #
showYaml :: DBData a => a -> ByteString Source #