mirror of
https://github.com/khibino/haskell-relational-record.git
synced 2024-09-11 08:55:25 +03:00
Divide relational-query package into query and schemas.
--HG-- rename : relational-query/src/Database/Relational/Schema/DB2Syscat/Columns.hs => relational-schemas/src/Database/Relational/Schema/DB2Syscat/Columns.hs rename : relational-query/src/Database/Relational/Schema/DB2Syscat/Keycoluse.hs => relational-schemas/src/Database/Relational/Schema/DB2Syscat/Keycoluse.hs rename : relational-query/src/Database/Relational/Schema/DB2Syscat/Tabconst.hs => relational-schemas/src/Database/Relational/Schema/DB2Syscat/Tabconst.hs rename : relational-query/src/Database/Relational/Schema/IBMDB2.hs => relational-schemas/src/Database/Relational/Schema/IBMDB2.hs rename : relational-query/src/Database/Relational/Schema/PgCatalog/PgAttribute.hs => relational-schemas/src/Database/Relational/Schema/PgCatalog/PgAttribute.hs rename : relational-query/src/Database/Relational/Schema/PgCatalog/PgClass.hs => relational-schemas/src/Database/Relational/Schema/PgCatalog/PgClass.hs rename : relational-query/src/Database/Relational/Schema/PgCatalog/PgConstraint.hs => relational-schemas/src/Database/Relational/Schema/PgCatalog/PgConstraint.hs rename : relational-query/src/Database/Relational/Schema/PgCatalog/PgNamespace.hs => relational-schemas/src/Database/Relational/Schema/PgCatalog/PgNamespace.hs rename : relational-query/src/Database/Relational/Schema/PgCatalog/PgType.hs => relational-schemas/src/Database/Relational/Schema/PgCatalog/PgType.hs rename : relational-query/src/Database/Relational/Schema/PostgreSQL.hs => relational-schemas/src/Database/Relational/Schema/PostgreSQL.hs
This commit is contained in:
parent
cca1293cba
commit
34a29c4392
@ -1,16 +1,14 @@
|
||||
name: relational-query
|
||||
version: 0.0.1.0
|
||||
synopsis: Typeful, Modular, Relational, algebraic query engine
|
||||
description: This package contiains typeful relation structure,
|
||||
SQL query generator and some RDBMSs' schema templates.
|
||||
description: This package contiains typeful relation structure and
|
||||
relational-algebraic query building DSL which can
|
||||
translate into SQL query.
|
||||
Supported query features are below:
|
||||
- Type safe query building
|
||||
- Restriction, Join, Aggregation
|
||||
- Modularized relations
|
||||
- Typed placeholders
|
||||
Supported RDBMS schemas are below:
|
||||
- IBM DB2
|
||||
- PostgreSQL
|
||||
homepage: http://twitter.com/khibino
|
||||
license: BSD3
|
||||
license-file: LICENSE
|
||||
@ -55,13 +53,6 @@ library
|
||||
Database.Relational.Query.Derives
|
||||
Database.Relational.Query.TH
|
||||
|
||||
Database.Relational.Schema.DB2Syscat.Columns
|
||||
Database.Relational.Schema.IBMDB2
|
||||
|
||||
Database.Relational.Schema.PgCatalog.PgAttribute
|
||||
Database.Relational.Schema.PgCatalog.PgType
|
||||
Database.Relational.Schema.PostgreSQL
|
||||
|
||||
other-modules:
|
||||
Database.Relational.Query.Internal.AliasId
|
||||
Database.Relational.Query.Internal.String
|
||||
@ -71,13 +62,6 @@ library
|
||||
Database.Relational.Query.Monad.Trans.RestrictingState
|
||||
Database.Relational.Query.Monad.Qualify
|
||||
|
||||
Database.Relational.Schema.DB2Syscat.Tabconst
|
||||
Database.Relational.Schema.DB2Syscat.Keycoluse
|
||||
|
||||
Database.Relational.Schema.PgCatalog.PgNamespace
|
||||
Database.Relational.Schema.PgCatalog.PgClass
|
||||
Database.Relational.Schema.PgCatalog.PgConstraint
|
||||
|
||||
build-depends: base <5
|
||||
, array
|
||||
, containers
|
||||
@ -90,5 +74,6 @@ library
|
||||
, sql-words
|
||||
, names-th
|
||||
, persistable-record
|
||||
|
||||
hs-source-dirs: src
|
||||
ghc-options: -Wall
|
||||
|
30
relational-schemas/LICENSE
Normal file
30
relational-schemas/LICENSE
Normal file
@ -0,0 +1,30 @@
|
||||
Copyright (c) 2013, Kei Hibino
|
||||
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
|
||||
* Redistributions in binary form must reproduce the above
|
||||
copyright notice, this list of conditions and the following
|
||||
disclaimer in the documentation and/or other materials provided
|
||||
with the distribution.
|
||||
|
||||
* Neither the name of Kei Hibino nor the names of other
|
||||
contributors may be used to endorse or promote products derived
|
||||
from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
2
relational-schemas/Setup.hs
Normal file
2
relational-schemas/Setup.hs
Normal file
@ -0,0 +1,2 @@
|
||||
import Distribution.Simple
|
||||
main = defaultMain
|
43
relational-schemas/relational-schemas.cabal
Normal file
43
relational-schemas/relational-schemas.cabal
Normal file
@ -0,0 +1,43 @@
|
||||
name: relational-schemas
|
||||
version: 0.0.1.0
|
||||
synopsis: RDBMSs' schema templates for relational-query
|
||||
description: This package contains some RDBMSs' schema structure definitions.
|
||||
Supported RDBMS schemas are below:
|
||||
- IBM DB2
|
||||
- PostgreSQL
|
||||
homepage: http://twitter.com/khibino
|
||||
license: BSD3
|
||||
license-file: LICENSE
|
||||
author: Kei Hibino
|
||||
maintainer: ex8k.hibino@gmail.com
|
||||
copyright: Copyright (c) 2013 Kei Hibino
|
||||
category: Database
|
||||
build-type: Simple
|
||||
cabal-version: >=1.8
|
||||
|
||||
library
|
||||
exposed-modules:
|
||||
Database.Relational.Schema.DB2Syscat.Columns
|
||||
Database.Relational.Schema.IBMDB2
|
||||
|
||||
Database.Relational.Schema.PgCatalog.PgAttribute
|
||||
Database.Relational.Schema.PgCatalog.PgType
|
||||
Database.Relational.Schema.PostgreSQL
|
||||
|
||||
other-modules:
|
||||
Database.Relational.Schema.DB2Syscat.Tabconst
|
||||
Database.Relational.Schema.DB2Syscat.Keycoluse
|
||||
|
||||
Database.Relational.Schema.PgCatalog.PgConstraint
|
||||
Database.Relational.Schema.PgCatalog.PgNamespace
|
||||
Database.Relational.Schema.PgCatalog.PgClass
|
||||
|
||||
build-depends: base <5
|
||||
, template-haskell
|
||||
, containers
|
||||
, time
|
||||
, persistable-record
|
||||
, relational-query
|
||||
|
||||
hs-source-dirs: src
|
||||
ghc-options: -Wall
|
@ -152,7 +152,7 @@ columnRelation = relation' $ do
|
||||
, 'S' -- String types
|
||||
, 'T' -- typespan types
|
||||
]
|
||||
|
||||
|
||||
asc $ att ! Attr.attnum'
|
||||
|
||||
return (ph, att >< typ)
|
Loading…
Reference in New Issue
Block a user