mirror of
https://github.com/khibino/haskell-relational-record.git
synced 2024-12-01 22:02:07 +03:00
Update to build merged MySQL schema.
This commit is contained in:
parent
c3bb2311b4
commit
fa5a5f95e5
@ -37,11 +37,15 @@ library
|
|||||||
Database.Relational.Schema.OracleDataDictionary.TabColumns
|
Database.Relational.Schema.OracleDataDictionary.TabColumns
|
||||||
Database.Relational.Schema.Oracle
|
Database.Relational.Schema.Oracle
|
||||||
|
|
||||||
|
Database.Relational.Schema.MySQLInfo.Columns
|
||||||
|
Database.Relational.Schema.MySQL
|
||||||
|
|
||||||
Database.Relational.Schema.DB2Syscat.Config
|
Database.Relational.Schema.DB2Syscat.Config
|
||||||
Database.Relational.Schema.PgCatalog.Config
|
Database.Relational.Schema.PgCatalog.Config
|
||||||
Database.Relational.Schema.SQLServerSyscat.Config
|
Database.Relational.Schema.SQLServerSyscat.Config
|
||||||
Database.Relational.Schema.SQLite3Syscat.Config
|
Database.Relational.Schema.SQLite3Syscat.Config
|
||||||
Database.Relational.Schema.OracleDataDictionary.Config
|
Database.Relational.Schema.OracleDataDictionary.Config
|
||||||
|
Database.Relational.Schema.MySQLInfo.Config
|
||||||
|
|
||||||
other-modules:
|
other-modules:
|
||||||
Database.Relational.Schema.DB2Syscat.Tabconst
|
Database.Relational.Schema.DB2Syscat.Tabconst
|
||||||
@ -57,6 +61,9 @@ library
|
|||||||
Database.Relational.Schema.OracleDataDictionary.ConsColumns
|
Database.Relational.Schema.OracleDataDictionary.ConsColumns
|
||||||
Database.Relational.Schema.OracleDataDictionary.Constraints
|
Database.Relational.Schema.OracleDataDictionary.Constraints
|
||||||
|
|
||||||
|
Database.Relational.Schema.MySQLInfo.KeyColumnUsage
|
||||||
|
Database.Relational.Schema.MySQLInfo.TableConstraints
|
||||||
|
|
||||||
build-depends: base <5
|
build-depends: base <5
|
||||||
, template-haskell
|
, template-haskell
|
||||||
, containers
|
, containers
|
||||||
|
@ -7,7 +7,10 @@ import Data.Int (Int16)
|
|||||||
import Database.Record.TH (derivingShow)
|
import Database.Record.TH (derivingShow)
|
||||||
import Database.Relational.Query.TH (defineTableTypesAndRecordDefault)
|
import Database.Relational.Query.TH (defineTableTypesAndRecordDefault)
|
||||||
|
|
||||||
$(defineTableTypesAndRecordDefault
|
import Database.Relational.Schema.MySQLInfo.Config (config)
|
||||||
|
|
||||||
|
|
||||||
|
$(defineTableTypesAndRecordDefault config
|
||||||
"INFORMATION_SCHEMA" "columns"
|
"INFORMATION_SCHEMA" "columns"
|
||||||
[ ("table_schema", [t|String|])
|
[ ("table_schema", [t|String|])
|
||||||
, ("table_name", [t|String|])
|
, ("table_name", [t|String|])
|
||||||
|
@ -0,0 +1,16 @@
|
|||||||
|
-- |
|
||||||
|
-- Module : Database.Relational.Schema.MySQLInfo.Config
|
||||||
|
-- Copyright : 2013 Kei Hibino
|
||||||
|
-- License : BSD3
|
||||||
|
--
|
||||||
|
-- Maintainer : ex8k.hibino@gmail.com
|
||||||
|
-- Stability : experimental
|
||||||
|
-- Portability : unknown
|
||||||
|
module Database.Relational.Schema.MySQLInfo.Config (config) where
|
||||||
|
|
||||||
|
import Database.Relational.Query (Config (..), defaultConfig)
|
||||||
|
|
||||||
|
|
||||||
|
-- | Configuration parameter against MySQL.
|
||||||
|
config :: Config
|
||||||
|
config = defaultConfig { normalizedTableName = False }
|
@ -7,7 +7,10 @@ import Data.Int (Int16)
|
|||||||
import Database.Record.TH (derivingShow)
|
import Database.Record.TH (derivingShow)
|
||||||
import Database.Relational.Query.TH (defineTableTypesAndRecordDefault)
|
import Database.Relational.Query.TH (defineTableTypesAndRecordDefault)
|
||||||
|
|
||||||
$(defineTableTypesAndRecordDefault
|
import Database.Relational.Schema.MySQLInfo.Config (config)
|
||||||
|
|
||||||
|
|
||||||
|
$(defineTableTypesAndRecordDefault config
|
||||||
"INFORMATION_SCHEMA" "key_column_usage"
|
"INFORMATION_SCHEMA" "key_column_usage"
|
||||||
[ ("constraint_name" , [t| String |])
|
[ ("constraint_name" , [t| String |])
|
||||||
, ("table_schema" , [t| String |])
|
, ("table_schema" , [t| String |])
|
||||||
|
@ -6,7 +6,10 @@ module Database.Relational.Schema.MySQLInfo.TableConstraints where
|
|||||||
import Database.Record.TH (derivingShow)
|
import Database.Record.TH (derivingShow)
|
||||||
import Database.Relational.Query.TH (defineTableTypesAndRecordDefault)
|
import Database.Relational.Query.TH (defineTableTypesAndRecordDefault)
|
||||||
|
|
||||||
$(defineTableTypesAndRecordDefault
|
import Database.Relational.Schema.MySQLInfo.Config (config)
|
||||||
|
|
||||||
|
|
||||||
|
$(defineTableTypesAndRecordDefault config
|
||||||
"INFORMATION_SCHEMA" "table_constraints"
|
"INFORMATION_SCHEMA" "table_constraints"
|
||||||
[ ("table_schema" , [t| String |])
|
[ ("table_schema" , [t| String |])
|
||||||
, ("table_name" , [t| String |])
|
, ("table_name" , [t| String |])
|
||||||
|
Loading…
Reference in New Issue
Block a user