packages feed

persistent-odbc-0.2.1.0: persistent-odbc.cabal

name:               persistent-odbc
version:            0.2.1.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
                    , aeson
                    , time
                    , conduit
                    , containers
                    , transformers
                    , convertible
                    , HDBC          >= 2.1.0
                    , HDBC-odbc     >= 2.6.0.0
                    , monad-logger
                    , resourcet
                    , persistent-template >= 2.6.0
                    , persistent    >= 2.6.0
                    , bytestring


  if flag(tester)
                    hs-source-dirs: examples
                    exposed-modules: FtypeEnum
                                   , Employment
                    build-depends: blaze-html
                                 , esqueleto >= 2.1
Executable TestODBC
  if flag(tester)
      build-depends:  base         >= 4.5        && < 5
                     , persistent-odbc
                     , blaze-html
                     , esqueleto
                    , text
                    , aeson
                    , time
                    , conduit
                    , containers
                    , transformers
                    , convertible
                    , HDBC          >= 2.1.0
                    , HDBC-odbc     >= 2.6.0.0
                    , monad-logger
                    , resourcet
                    , monad-control
                    , persistent-template >= 2.6.0
                    , persistent    >= 2.6.0
                    , bytestring
  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