Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype RaftPostgresT m a = RaftPostgresT {
- unRaftPostgresT :: ReaderT RaftPostgresEnv m a
- runRaftPostgresT :: MonadIO m => ConnectInfo -> RaftPostgresT m a -> m a
- runRaftPostgresM :: ConnectInfo -> RaftPostgresM a -> IO a
- raftDatabaseName :: [Char] -> [Char]
- raftDatabaseConnInfo :: [Char] -> [Char] -> [Char] -> ConnectInfo
- initConnInfo :: ConnectInfo
- setupDB :: ConnectInfo -> IO (Either PGError Connection)
- deleteDB :: [Char] -> Connection -> IO Int64
Documentation
newtype RaftPostgresT m a Source #
A single threaded PostgreSQL storage monad transformer
RaftPostgresT | |
|
Instances
runRaftPostgresT :: MonadIO m => ConnectInfo -> RaftPostgresT m a -> m a Source #
Run a RaftPostgresT computation by supplying the database connection info
runRaftPostgresM :: ConnectInfo -> RaftPostgresM a -> IO a Source #
raftDatabaseName :: [Char] -> [Char] Source #
raftDatabaseConnInfo :: [Char] -> [Char] -> [Char] -> ConnectInfo Source #
setupDB :: ConnectInfo -> IO (Either PGError Connection) Source #
Create the libraft database to store all log entries