packages feed

persistent-odbc-0.2.0.0: persistent-odbc.cabal

name:               persistent-odbc
version:            0.2.0.0
synopsis:           Backend for the persistent library using ODBC
license:            MIT
license-file:       LICENSE
author:             Grant Weyburne
maintainer:         gbwey9@gmail.com
category:           Database, Yesod
cabal-version:      >= 1.8
build-type:         Simple
stability:          Experimental
homepage:           https://github.com/gbwey/persistent-odbc
bug-reports:        https://github.com/gbwey/persistent-odbc/issues
description:        
    This package contains backends for persistent using ODBC.
    It currently supports the following databases: MSSQL, MySql, Oracle, Sqlite, DB2, Postgres. 
    Uses HDBC-ODBC for accessing ODBC. 

Flag debug
  Default: False

Flag tester
  Default: False
  
library
  if flag(debug)
    cpp-options: -DDEBUG

  exposed-modules:    Database.Persist.ODBC
                    , Database.Persist.ODBCTypes
                    , Database.Persist.MigrateOracle
                    , Database.Persist.MigratePostgres
                    , Database.Persist.MigrateSqlite
                    , Database.Persist.MigrateMSSQL
                    , Database.Persist.MigrateMySQL
                    , Database.Persist.MigrateDB2
                    
  ghc-options:   -Wall
  hs-source-dirs: src

  build-depends:      base         >= 4.5        && < 5
                    , text          >= 0.11.2     && < 1.3
                    , aeson         >= 0.6
                    , time          >= 1.1
                    , conduit       >= 1.0
                    , containers    >= 0.4
                    , transformers  >= 0.3
                    , convertible   >= 1.0
                    , HDBC          >= 2.2
                    , HDBC-odbc     >= 2.2 
                    , monad-logger
                    , resourcet
                    , monad-control
                    , persistent-template >= 2.1 && < 3
                    , persistent    >= 2.1 && < 3
                    , bytestring    >= 0.9        && < 0.11


  if flag(tester) 
                    hs-source-dirs: examples
                    exposed-modules: TestODBC
                                   , FtypeEnum
                                   , Employment
                    build-depends: blaze-html
                                 , esqueleto >= 2.1 && < 3
Executable TestODBC
  if flag(tester)
      build-depends:  base         >= 4.5        && < 5
                     , persistent-odbc
                     , blaze-html
                     , esqueleto    >= 2.1 && < 3                
                    , text          >= 0.11.2     && < 1.3
                    , aeson         >= 0.6
                    , time          >= 1.1
                    , conduit       >= 1.0
                    , containers    >= 0.4
                    , transformers  >= 0.3
                    , convertible   >= 1.0
                    , HDBC          >= 2.2
                    , HDBC-odbc     >= 2.2 
                    , monad-logger
                    , resourcet
                    , monad-control
                    , persistent-template >= 2.1 && < 3
                    , persistent    >= 2.1 && < 3
                    , bytestring    >= 0.9        && < 0.11
  else 
      buildable: False
  Main-Is:         TestODBC.hs
  Hs-Source-Dirs:  examples
  Other-Modules:   FtypeEnum, Employment,Test1
  
source-repository head
  type:     git
  location: git://github.com/gbwey/persistent-odbc.git