-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathbeam-automigrate.cabal
240 lines (214 loc) · 6.34 KB
/
beam-automigrate.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
name: beam-automigrate
version: 0.1.6.0
license-file: LICENSE
build-type: Simple
cabal-version: 2.0
author: Alfredo Di Napoli, Andres Löh, Well-Typed LLP, and Obsidian Systems LLC
copyright: 2020 Obsidian Systems LLC
maintainer: maintainer@obsidian.systems
category: Database
license: BSD3
license-file: LICENSE
bug-reports: https://github.com/obsidiansystems/beam-automigrate/issues
synopsis: DB migration library for beam, targeting Postgres.
description:
This package offers an alternative to @<https://hackage.haskell.org/package/beam-migrate beam-migrate>@
and can be used to migrate a database between different versions of a Haskell schema. It doesn't depend
on @beam-migrate@ if not transitively (@beam-postgres@ depends on it, for example).
.
<<https://i.imgur.com/xuPyUfg.gif>>
extra-source-files:
README.md
CHANGELOG.md
tested-with: GHC ==8.6.5 || ==8.8.4 || ==8.10.7 || ==9.0.2
library
exposed-modules:
Database.Beam.AutoMigrate
Database.Beam.AutoMigrate.Annotated
Database.Beam.AutoMigrate.BenchUtil
Database.Beam.AutoMigrate.Compat
Database.Beam.AutoMigrate.Diff
Database.Beam.AutoMigrate.Generic
Database.Beam.AutoMigrate.Postgres
Database.Beam.AutoMigrate.Schema.Gen
Database.Beam.AutoMigrate.Types
Database.Beam.AutoMigrate.Util
Database.Beam.AutoMigrate.Validity
hs-source-dirs: src
build-depends:
aeson >=1.4.4 && <2.2
, base >=4.9 && <5
, beam-core >=0.9 && <0.11
, beam-postgres >=0.5 && <0.6
, bytestring >=0.10.8.2 && <0.12.0.0
, containers >=0.5.9.2 && <0.8.0.0
, deepseq >=1.4.4 && <1.6
, dlist >=0.8.0 && <1.1
, microlens >=0.4.10 && <0.6
, mtl >=2.2.2 && <2.4
, postgresql-simple >=0.5.4 && <0.7.0.0
, pretty-simple >=2.2.0 && <4.2
, QuickCheck >=2.13 && <2.15
, quickcheck-instances >=0.3 && <0.4
, scientific >=0.3.6 && <0.5
, splitmix >=0.0.3 && <0.2
, string-conv >=0.1.2 && <0.3
, text >=1.2.0.0 && <1.3.0.0
, time >=1.8.0 && <2
, transformers >=0.5.6 && <0.7
, uuid >=1.3 && <1.4
, vector >=0.12.0.3 && <0.13.0.0
default-language: Haskell2010
default-extensions:
DataKinds
FlexibleInstances
GADTs
KindSignatures
LambdaCase
MultiParamTypeClasses
OverloadedStrings
ScopedTypeVariables
TypeApplications
TypeFamilies
ghc-options: -Wall
if flag(werror)
ghc-options: -Werror
library beam-automigrate-test-utils
hs-source-dirs: util
build-depends:
base
, gargoyle-postgresql-connect
, postgresql-simple
, resource-pool
, tasty
exposed-modules:
Database.Beam.AutoMigrate.TestUtils
ghc-options: -Wall
default-language: Haskell2010
test-suite beam-automigrate-tests
type: exitcode-stdio-1.0
hs-source-dirs: tests
main-is: Main.hs
other-modules: Test.Database.Beam.AutoMigrate.Arbitrary
build-depends:
base
, beam-automigrate
, containers
, pretty-simple
, QuickCheck
, tasty
, tasty-quickcheck
, text
default-language: Haskell2010
default-extensions: OverloadedStrings
executable beam-automigrate-integration-tests
hs-source-dirs: integration-tests tests
main-is: Main.hs
other-modules: Test.Database.Beam.AutoMigrate.Arbitrary
PostgresqlSyntax.Data.Orphans
build-depends:
base
, beam-automigrate
, beam-automigrate-test-utils
, beam-core
, beam-postgres
, containers
, postgresql-simple
, postgresql-syntax >= 0.3 && <0.5
, pretty-simple
, QuickCheck
, tasty
, tasty-quickcheck
, text
, syb
ghc-options: -Wall -threaded
default-language: Haskell2010
default-extensions:
OverloadedStrings
ScopedTypeVariables
executable beam-automigrate-examples
hs-source-dirs: examples
main-is: Main.hs
other-modules:
Example
ForeignKeys
-- SubDatabases -- Sub-database support hasn't been added to beam yet. See https://github.com/adinapoli/beam/commit/a00ea815e74aea666af840dbe75571b8165ca506
build-depends:
aeson
, base
, beam-automigrate
, beam-core
, beam-postgres
, bytestring
, postgresql-simple
, text
, time
default-language: Haskell2010
default-extensions:
DataKinds
DeriveGeneric
FlexibleContexts
FlexibleInstances
MultiParamTypeClasses
OverloadedStrings
StandaloneDeriving
TypeApplications
TypeFamilies
ghc-options: -Wall -O2 -rtsopts -threaded
if flag(werror)
ghc-options: -Werror
if flag(ghcipretty)
build-depends: pretty-simple
executable beam-automigrate-large-migration-test
hs-source-dirs: large-migration-test
main-is: Main.hs
build-depends:
base
, beam-automigrate
, beam-postgres
, containers
, postgresql-simple
, time
default-language: Haskell2010
default-extensions: OverloadedStrings
ghc-options: -Wall -O2 -rtsopts -threaded
benchmark beam-automigrate-bench
type: exitcode-stdio-1.0
hs-source-dirs: bench
main-is: Main.hs
build-depends:
base
, beam-automigrate
, beam-postgres
, bytestring
, containers
, criterion
, deepseq
, postgresql-simple
, QuickCheck
, splitmix
default-language: Haskell2010
ghc-options: -Wall -O2 -rtsopts -threaded
executable readme
build-depends:
base
, beam-automigrate
, beam-automigrate-test-utils
, beam-core
, beam-postgres
, postgresql-simple
, text
default-language: Haskell2010
main-is: README.lhs
ghc-options: -Wall -optL -q -threaded
flag werror
description: Enable -Werror during development
default: False
manual: True
flag ghcipretty
description: Enable pretty-show for pretty-printing purposes
default: False
manual: True
source-repository head
type: git
location: https://github.com/obsidiansystems/beam-automigrate