Persistence.Database
type DBMonad m a = ReaderT SqlBackend m a Source #
onDatabase :: (MonadIO m, MonadBaseControl IO m, MonadUnliftIO m, MonadFail m) => DBConfig -> DBMonad (NoLoggingT m) a -> m a Source #