-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | SQLite backend for the Selda database EDSL.
--   
--   SQLite backend for the Selda database EDSL.
@package selda-sqlite
@version 0.1.6.0


-- | SQLite3 backend for Selda.
module Database.Selda.SQLite

-- | Perform the given computation over an SQLite database. The database is
--   guaranteed to be closed when the computation terminates.
withSQLite :: (MonadIO m, MonadMask m) => FilePath -> SeldaT m a -> m a

-- | Open a new connection to an SQLite database. The connection is
--   reusable across calls to <a>runSeldaT</a>, and must be explicitly
--   closed using <a>seldaClose</a> when no longer needed.
sqliteOpen :: (MonadIO m, MonadMask m) => FilePath -> m SeldaConnection

-- | Close a reusable Selda connection. Closing a connection while in use
--   is undefined. Passing a closed connection to <a>runSeldaT</a> results
--   in a <a>SeldaError</a> being thrown. Closing a connection more than
--   once is a no-op.
seldaClose :: MonadIO m => SeldaConnection -> m ()
