Copyright | 2013-2019 Kei Hibino |
---|---|
License | BSD3 |
Maintainer | ex8k.hibino@gmail.com |
Stability | experimental |
Portability | unknown |
Safe Haskell | None |
Language | Haskell2010 |
Database.Relational.Schema.IBMDB2
Description
This module implements queries to get table schema and table constraint informations from system catalog of IBM DB2.
Synopsis
- config :: Config
- normalizeColumn :: String -> String
- notNull :: Columns -> Bool
- getType :: Map String TypeQ -> Columns -> Maybe (String, TypeQ)
- columnsQuerySQL :: Query (String, String) Columns
- primaryKeyQuerySQL :: Query (String, String) String
Documentation
normalizeColumn :: String -> String Source #
Normalize column name string to query DB2 system catalog
Arguments
:: Map String TypeQ | Type mapping specified by user |
-> Columns | Column info in system catalog |
-> Maybe (String, TypeQ) | Result normalized name and mapped Haskell type |
Get column normalized name and column Haskell type.
columnsQuerySQL :: Query (String, String) Columns Source #
primaryKeyQuerySQL :: Query (String, String) String Source #
Phantom typed Query
to get primary key name from schema name and table name.