haskelldb-hdbc-postgresql-2.0: HaskellDB support for the HDBC PostgreSQL driver.

Portabilityportable
Stabilityexperimental
Maintainerhaskelldb-users@lists.sourceforge.net

Database.HaskellDB.HDBC.PostgreSQL

Description

 

Synopsis

Documentation

postgresqlConnect :: MonadIO m => [(String, String)] -> (Database -> m a) -> m aSource

data DriverInterface

Interface which drivers should implement. The connect function takes some driver specific name, value pairs use to setup the database connection, and a database action to run. requiredOptions lists all required options with a short description, that is printed as help in the DBDirect program.

Constructors

DriverInterface 

Fields

connect :: forall m a. MonadIO m => [(String, String)] -> (Database -> m a) -> m a
 
requiredOptions :: [(String, String)]
 

driver :: DriverInterfaceSource

This driver passes its options through to HDBC. HDBC refers to http://www.postgresql.org/docs/8.1/static/libpq.html#LIBPQ-CONNECT for the meaning of the options.