Safe Haskell | None |
---|
Raw definitions.
- data Monarch a
- data Connection
- type ConnectionPool = Pool Connection
- withMonarchConn :: (MonadBaseControl IO m, MonadIO m) => String -> Int -> (Connection -> m a) -> m a
- withMonarchPool :: (MonadBaseControl IO m, MonadIO m) => String -> Int -> Int -> (ConnectionPool -> m a) -> m a
- runMonarchConn :: (MonadBaseControl IO m, MonadIO m) => Monarch a -> Connection -> m (Either Code a)
- runMonarchPool :: (MonadBaseControl IO m, MonadIO m) => Monarch a -> ConnectionPool -> m (Either Code a)
- data ExtOption
- data RestoreOption = ConsistencyChecking
- data MiscOption = NoUpdateLog
- data Code
- liftMonarch :: Pipe ByteString ByteString ByteString () IO a -> Monarch a
Documentation
A monad supporting TokyoTyrant access.
data Connection Source
Connection with TokyoTyrant
type ConnectionPool = Pool ConnectionSource
Connection pool with TokyoTyrant
withMonarchConn :: (MonadBaseControl IO m, MonadIO m) => String -> Int -> (Connection -> m a) -> m aSource
Create a TokyoTyrant connection and run the given action.
Don't use the given Connection
outside the action.
withMonarchPool :: (MonadBaseControl IO m, MonadIO m) => String -> Int -> Int -> (ConnectionPool -> m a) -> m aSource
Create a TokyoTyrant connection pool and run the given action.
Don't use the given ConnectionPool
outside the action.
runMonarchConn :: (MonadBaseControl IO m, MonadIO m) => Monarch a -> Connection -> m (Either Code a)Source
Run action with a connection.
runMonarchPool :: (MonadBaseControl IO m, MonadIO m) => Monarch a -> ConnectionPool -> m (Either Code a)Source
Run action with a unused connection from the pool.
Options for scripting extension
RecordLocking | record locking |
GlobalLocking | global locking |
BitFlag32 ExtOption |
data RestoreOption Source
Options for restore
ConsistencyChecking | consistency checking |
BitFlag32 RestoreOption |
data MiscOption Source
Options for miscellaneous operation
NoUpdateLog | omission of update log |
BitFlag32 MiscOption |
Error code
liftMonarch :: Pipe ByteString ByteString ByteString () IO a -> Monarch aSource
Lift