Safe Haskell | None |
---|
- withSqlitePool :: (MonadBaseControl IO m, MonadIO m) => String -> Int -> (Pool Sqlite -> m a) -> m a
- withSqliteConn :: (MonadBaseControl IO m, MonadIO m) => String -> (Sqlite -> m a) -> m a
- runDbConn :: (MonadBaseControl IO m, MonadIO m, ConnectionManager cm conn) => DbPersist conn (NoLoggingT m) a -> cm -> m a
- data Sqlite = Sqlite Database (IORef (HashMap ByteString Statement))
- module Database.Groundhog
- module Database.Groundhog.Generic.Sql.Functions
Documentation
withSqliteConn :: (MonadBaseControl IO m, MonadIO m) => String -> (Sqlite -> m a) -> m aSource
runDbConn :: (MonadBaseControl IO m, MonadIO m, ConnectionManager cm conn) => DbPersist conn (NoLoggingT m) a -> cm -> m a
Runs action within connection. It can handle a simple connection, a pool of them, etc.
module Database.Groundhog