persistent-sqlite-2.1.1: Backend for the persistent library using sqlite3.

Safe HaskellNone
LanguageHaskell98

Database.Persist.Sqlite

Description

A sqlite backend for persistent.

Synopsis

Documentation

withSqlitePool Source

Arguments

:: (MonadBaseControl IO m, MonadIO m, MonadLogger m) 
=> Text 
-> Int

number of connections to open

-> (ConnectionPool -> m a) 
-> m a 

data SqliteConf Source

Information required to connect to a sqlite database

Constructors

SqliteConf 

runSqlite Source

Arguments

:: (MonadBaseControl IO m, MonadIO m) 
=> Text

connection string

-> SqlPersistT (NoLoggingT (ResourceT m)) a

database action

-> m a 

A convenience helper which creates a new database connection and runs the given block, handling MonadResource and MonadLogger requirements. Note that all log messages are discarded.

Since 1.1.4

wrapConnection :: Connection -> LogFunc -> IO SqlBackend Source

Wrap up a raw Connection as a Persistent SQL Connection.

Since 1.1.5