monarch-0.4.0.0: Monadic interface for TokyoTyrant.

Safe HaskellNone

Database.Monarch.Raw

Description

Raw definitions.

Synopsis

Documentation

data Monarch a Source

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.

data ExtOption Source

Options for scripting extension

Constructors

RecordLocking

record locking

GlobalLocking

global locking

Instances

BitFlag32 ExtOption 

data RestoreOption Source

Options for restore

Constructors

ConsistencyChecking

consistency checking

Instances

BitFlag32 RestoreOption 

data MiscOption Source

Options for miscellaneous operation

Constructors

NoUpdateLog

omission of update log

Instances

BitFlag32 MiscOption