relational-query-HDBC-0.0.1.1: HDBC instance of relational join and typed query for HDBC

Portabilityunknown
Stabilityexperimental
Maintainerex8k.hibino@gmail.com
Safe HaskellNone

Database.HDBC.Schema.Driver

Description

This module provides driver interface to load database system catalog via HDBC.

Synopsis

Documentation

type TypeMap = [(String, TypeQ)]Source

Mapping between type name string of DBMS and type in Haskell. Type name string depends on specification of DBMS system catalogs.

data Driver conn Source

Interface type to load database system catalog via HDBC.

Constructors

Driver 

Fields

typeMap :: TypeMap

Custom type mapping of this driver

getFieldsWithMap :: TypeMap -> conn -> String -> String -> IO ([(String, TypeQ)], [Int])

Get column name and Haskell type pairs and not-null columns index.

getPrimaryKey :: conn -> String -> String -> IO [String]

Get primary key column name.

emptyDriver :: IConnection conn => Driver connSource

Empty definition of Driver

getFields :: IConnection conn => Driver conn -> conn -> String -> String -> IO ([(String, TypeQ)], [Int])Source

Helper function to call getFieldsWithMap using typeMap of Driver.