Skip to content


Subversion checkout URL

You can clone with
Download ZIP
tree: 4e7b9730d2
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (10 sloc) 0.429 kB
module Turbinado.Database.ORM.Types where
import qualified Data.Map as M
import Database.HDBC
type Tables = M.Map TableName (Columns, PrimaryKey)
type TableName = String
type Columns = M.Map ColumnName ColumnDesc
type ColumnName = String
type PrimaryKey = [ColumnName]
type ColumnDesc = (SqlColDesc, ForeignKeyReferences)
type ForeignKeyReferences = [(TableName, ColumnName)] -- all columns which are targets of foreign keys
Jump to Line
Something went wrong with that request. Please try again.