|
Database.HaskellDB.Database | Portability | non-portable | Stability | experimental | Maintainer | haskelldb-users@lists.sourceforge.net |
|
|
|
|
|
Description |
Defines standard database operations and the
primitive hooks that a particular database binding
must provide.
|
|
Synopsis |
|
|
|
|
Operators
|
|
|
The (!.) operator selects over returned records from
the database (= rows)
Non-overloaded version of !. For backwards compatibility.
|
|
Type declarations
|
|
|
|
|
class GetRec er vr | er -> vr, vr -> er where | Source |
|
| Methods | | :: | | => GetInstances s | Phantom argument to the the return type right
| -> Rel er | Fields to get.
| -> Scheme | Driver-specific result data
(for example a Statement object)
| -> s | Result record.
| -> IO (Record vr) | | Create a result record.
|
|
| | Instances | |
|
|
|
Functions for getting values of a given type. Database drivers
need to implement these functions and pass this record to getRec
when getting query results.
All these functions should return Nothing if the value is NULL.
| Constructors | |
|
|
Function declarations
|
|
|
performs a query on a database
|
|
|
Inserts a record into a table
|
|
|
|
|
|
|
|
|
Inserts values from a query into a table
|
|
|
:: Database | Database
| -> IO [TableName] | Names of all tables in the database
| List all tables in the database
|
|
|
|
:: Database | Database
| -> TableName | Name of the tables whose columns are to be listed
| -> IO [(Attribute, FieldDesc)] | Name and type info for each column
| List all columns in a table, along with their types
|
|
|
|
:: | | => Database | Action to run
| -> IO a | | -> IO a | | Performs some database action in a transaction. If no exception is thrown,
the changes are committed.
|
|
|
|
:: Database | Database
| -> String | Name of database to create
| -> IO () | | Is not very useful. You need to be root to use it.
We suggest you solve this in another way
|
|
|
|
|
|
|
|
|
|
|
|
Produced by Haddock version 2.6.0 |