A sqlite backend for persistent.
- withSqlitePool :: ResourceIO m => Text -> Int -> (ConnectionPool -> m a) -> m a
- withSqliteConn :: ResourceIO 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
:: ResourceIO m | |
=> Text | |
-> Int | number of connections to open |
-> (ConnectionPool -> m a) | |
-> m a |
withSqliteConn :: ResourceIO 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 | |
|