Safe Haskell | Safe-Infered |
---|
A sqlite backend for persistent.
- withSqlitePool :: (MonadBaseControl IO m, MonadIO m) => Text -> Int -> (ConnectionPool -> m a) -> m a
- withSqliteConn :: (MonadBaseControl IO m, MonadIO m) => Text -> (Connection -> m a) -> m a
- createSqlitePool :: MonadIO m => Text -> Int -> m ConnectionPool
- module Database.Persist
- module Database.Persist.GenericSql
- data SqliteConf = SqliteConf {
- sqlDatabase :: Text
- sqlPoolSize :: Int
Documentation
:: (MonadBaseControl IO m, MonadIO m) | |
=> Text | |
-> Int | number of connections to open |
-> (ConnectionPool -> m a) | |
-> m a |
withSqliteConn :: (MonadBaseControl IO m, MonadIO m) => Text -> (Connection -> m a) -> m aSource
createSqlitePool :: MonadIO m => Text -> Int -> m ConnectionPoolSource
module Database.Persist
module Database.Persist.GenericSql
data SqliteConf Source
Information required to connect to a sqlite database
SqliteConf | |
|