haskelldb-dynamic-0.10: HaskellDB support for the dynamically loaded drivers.ContentsIndex
Database.HaskellDB.DynConnect
Portabilityportable
Stabilityexperimental
Maintainerchucky@dtek.chalmers.se
Description
This contains functions for loading drivers dynamically and connecting to databases using them.
Synopsis
dynConnect :: MonadIO m => String -> String -> [(String, String)] -> (Database -> m a) -> m a
dynConnect_ :: MonadIO m => String -> [(String, String)] -> (Database -> m a) -> m a
Documentation
dynConnect
:: MonadIO m
=> StringDriver package
-> StringDriver module
-> [(String, String)]Options to the driver
-> (Database -> m a)Database action to run
-> m a
Loads a driver by package and module name.
dynConnect_
:: MonadIO m
=> StringDriver package suffix, e.g. WX, HSQL.MySQL, HDBC.PostgreSQL
-> [(String, String)]Arguments to the driver
-> (Database -> m a)Database action to run
-> m a
Load a driver by a simple driver name corresponding to the package suffix
Produced by Haddock version 0.8