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

Database.Persist.Sqlite

Description

A sqlite backend for persistent.

Synopsis

Documentation

data SqliteReader m a Source

A ReaderT monad transformer holding a sqlite database connection.

runSqlite :: MonadCatchIO m => SqliteReader m a -> Pool Connection -> m aSource

Run a series of database actions within a single transaction. On any exception, the transaction is rolled back.

withSqliteSource

Arguments

:: MonadCatchIO m 
=> String 
-> Int

number of connections to open

-> (Pool Connection -> m a) 
-> m a 

Handles opening and closing of the database connection automatically.

data Pool a