-
Notifications
You must be signed in to change notification settings - Fork 2
/
postgresql-simple-named.cabal
106 lines (94 loc) · 3.5 KB
/
postgresql-simple-named.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
cabal-version: 2.4
name: postgresql-simple-named
version: 0.0.5.0
synopsis: Implementation of named parameters for `postgresql-simple` library
description:
Implementation of named parameters for @postgresql-simple@ library.
.
Here is an exaple of how it could be used in your code:
.
> queryNamed dbConnection [sql|
> SELECT *
> FROM table
> WHERE foo = ?foo
> AND bar = ?bar
> AND baz = ?foo
> |] [ "foo" =? "fooBar"
> , "bar" =? "barVar"
> ]
homepage: https://github.com/Holmusk/postgresql-simple-named
bug-reports: https://github.com/Holmusk/postgresql-simple-named/issues
license: MPL-2.0
license-file: LICENSE
author: Veronika Romashkina, Dmitrii Kovanikov
maintainer: Holmusk <[email protected]>
copyright: 2019 Holmusk
category: Database, PostgreSQL
build-type: Simple
extra-source-files: README.md
extra-doc-files: CHANGELOG.md
tested-with: GHC == 9.2.8
, GHC == 9.4.8
, GHC == 9.6.6
, GHC == 9.8.2
, GHC == 9.10.1
source-repository head
type: git
location: https://github.com/Holmusk/postgresql-simple-named.git
common common-options
build-depends: base >= 4.11 && < 4.21
ghc-options: -Wall
-Wincomplete-uni-patterns
-Wincomplete-record-updates
-Wcompat
-Widentities
-Wredundant-constraints
-fhide-source-paths
-Wmissing-export-lists
-Wpartial-fields
if impl(ghc >= 8.8)
ghc-options: -Wmissing-deriving-strategies
if impl(ghc >= 8.10)
ghc-options: -Wunused-packages
default-language: Haskell2010
default-extensions: ConstraintKinds
DeriveGeneric
GeneralizedNewtypeDeriving
InstanceSigs
KindSignatures
LambdaCase
OverloadedStrings
RecordWildCards
ScopedTypeVariables
StandaloneDeriving
TupleSections
TypeApplications
ViewPatterns
library
import: common-options
hs-source-dirs: src
exposed-modules: PgNamed
build-depends: bytestring >= 0.10 && < 0.13
, mtl >= 2.2 && < 2.4
, postgresql-simple >= 0.5 && < 0.8
, text >= 1.2 && < 2.2
test-suite postgresql-simple-named-test
import: common-options
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Spec.hs
build-depends: bytestring
, hspec >= 2.5
, postgresql-simple-named
, postgresql-simple >= 0.5 && < 0.8
, resource-pool ^>= 0.2.3.2 || ^>= 0.4.0.0
, transformers
ghc-options: -threaded -rtsopts -with-rtsopts=-N
test-suite postgresql-simple-named-doctest
import: common-options
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Doctest.hs
build-depends: doctest
, Glob
ghc-options: -threaded