relational-schemas-0.1.0.0: RDBMSs' schema templates for relational-query

Safe HaskellNone

Database.Relational.Schema.Oracle

Synopsis

Documentation

normalizeColumn :: String -> StringSource

Normalize column name string to query Oracle DB data dictionary.

notNull :: DbaTabColumns -> BoolSource

Not-null attribute information of column.

getTypeSource

Arguments

:: Map String TypeQ

Type mapping specified by user

-> DbaTabColumns

Column info in data dictionary

-> Maybe (String, TypeQ)

Result normalized name and mapped Haskell type

Get column normalized name and column Haskell type.

columnsQuerySQL :: Query (String, String) DbaTabColumnsSource

Phantom typed Query to get DbaTabColumns from owner name and table name.

primaryKeyQuerySQL :: Query (String, String) (Maybe String)Source

Phantom typed Query to get primary key name from owner name and table name.