|
|
|
| Description |
| This module wraps Database.HDBC and its backends.
|
|
| Synopsis |
|
|
|
| Documentation |
|
| data DBConnection |
| Container type for any database connection
| Instances | |
|
|
| connect |
|
|
| connect' |
| :: String | DB backend
| | -> String | DB connection path (format is backend-specific)
| | -> IO DBConnection | | | Connect to DB
|
|
|
| commit :: DBConnection -> IO () |
| Commit DB transaction
|
|
| disconnect |
|
|
| disconnect' :: DBConnection -> IO () |
| Disconnect from DB
|
|
| query |
| :: DBConnection | | | -> String | SQL
| | -> [SqlValue] | List of SQL parameters
| | -> IO [[SqlValue]] | | | Generic query. Lazy.
|
|
|
| query' :: DBConnection -> String -> [SqlValue] -> IO [[SqlValue]] |
| Generic query. Strict.
|
|
| queryR :: DBConnection -> String -> [SqlValue] -> Model -> IO [Model] |
| Same as query, but return list of Model. Lazy.
|
|
| queryR' :: DBConnection -> String -> [SqlValue] -> Model -> IO [Model] |
| Same as queryR, but strict.
|
|
| Produced by Haddock version 2.4.2 |