relational-query-HDBC-0.1.0.1: HDBC instance of relational-query and typed query interface for HDBC

Copyright2013 Kei Hibino
LicenseBSD3
Maintainerex8k.hibino@gmail.com
Stabilityexperimental
Portabilityunknown
Safe HaskellNone
LanguageHaskell2010

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 conn Source

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.