Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data LevelDBBackendT m a
- runLevelDBBackendT :: MonadBaseControl IO m => AuthConfig -> LevelDBEnv -> LevelDBBackendT m a -> m (Either ServantErr a)
- data LevelDBEnv
- newLevelDBEnv :: MonadIO m => DB -> ReadOptions -> WriteOptions -> m LevelDBEnv
Documentation
data LevelDBBackendT m a Source #
Monad transformer that implements storage backend
Monad m => MonadError ServantErr (LevelDBBackendT m) Source # | |
MonadBase IO m => MonadBase IO (LevelDBBackendT m) Source # | |
MonadBaseControl IO m => MonadBaseControl IO (LevelDBBackendT m) Source # | |
Monad m => Monad (LevelDBBackendT m) Source # | |
Functor m => Functor (LevelDBBackendT m) Source # | |
Monad m => Applicative (LevelDBBackendT m) Source # | |
MonadIO m => MonadIO (LevelDBBackendT m) Source # | |
MonadThrow m => MonadThrow (LevelDBBackendT m) Source # | |
MonadCatch m => MonadCatch (LevelDBBackendT m) Source # | |
(MonadBase IO m, MonadThrow m, MonadIO m) => MonadResource (LevelDBBackendT m) Source # | |
(MonadBase IO m, MonadIO m, MonadThrow m, MonadMask m) => HasStorage (LevelDBBackendT m) Source # | |
Monad m => HasAuthConfig (LevelDBBackendT m) Source # | |
Monad m => MonadReader (AuthConfig, LevelDBEnv) (LevelDBBackendT m) Source # | |
type StM (LevelDBBackendT m) a Source # | |
runLevelDBBackendT :: MonadBaseControl IO m => AuthConfig -> LevelDBEnv -> LevelDBBackendT m a -> m (Either ServantErr a) Source #
Execute backend action with given connection pool.
data LevelDBEnv Source #
Holds together db reference and options for read/write and mutex
Monad m => MonadReader (AuthConfig, LevelDBEnv) (LevelDBBackendT m) # | |
newLevelDBEnv :: MonadIO m => DB -> ReadOptions -> WriteOptions -> m LevelDBEnv Source #
Make new environment for execution of LevelDB operations