selda-sqlite-0.1.6.0: SQLite backend for the Selda database EDSL.

Safe HaskellNone
LanguageHaskell2010

Database.Selda.SQLite

Description

SQLite3 backend for Selda.

Synopsis

Documentation

withSQLite :: (MonadIO m, MonadMask m) => FilePath -> SeldaT m a -> m a Source #

Perform the given computation over an SQLite database. The database is guaranteed to be closed when the computation terminates.

sqliteOpen :: (MonadIO m, MonadMask m) => FilePath -> m SeldaConnection Source #

Open a new connection to an SQLite database. The connection is reusable across calls to runSeldaT, and must be explicitly closed using seldaClose when no longer needed.

seldaClose :: MonadIO m => SeldaConnection -> m () #

Close a reusable Selda connection. Closing a connection while in use is undefined. Passing a closed connection to runSeldaT results in a SeldaError being thrown. Closing a connection more than once is a no-op.