hsql-1.8.1: Simple library for database access from Haskell.

DB.HSQL.Core

Synopsis

Documentation

closeHandleSource

Arguments

:: MVar Bool

closing state ref

-> IO ()

DB action to do if not closed

-> IO () 

if closed, nothing to do:

checkHandleSource

Arguments

:: MVar Bool

closing state ref

-> IO a

DB action to do if not closed

-> IO a 

if closed, exception:

sqlExceptionsSource

Arguments

:: Exception x 
=> x

the exception thinc to cast to SQLError

-> Maybe SqlError 

Casts, if possible, an Exception to an SqlError:

catchSql :: IO a -> (SqlError -> IO a) -> IO aSource

DEPRECATED: catchSql: Use Control.Exception.catch instead.

handleSql :: (SqlError -> IO a) -> IO a -> IO aSource

DEPRECATED: handleSql: Use Control.Exception.handle instead.