Joe Nelson
e76de196e0
Merge pull request #604 from begriffs/less-frequent-gc
...
Run GC every 2s rather than 0.3s
2016-05-25 23:29:20 -07:00
Joe Nelson
f4027cb5fd
Pin hasql-* dep versions
...
This allows packdeps to warn us when they get out of date
2016-05-22 11:02:37 -07:00
Joe Nelson
308c006a30
Quote with-rtsopts correctly
2016-05-21 12:18:10 -07:00
Joe Nelson
44cdc97d71
Run GC every 2s rather than 0.3s
...
Fixes #565
2016-05-21 11:21:42 -07:00
Diogo Biazus
b68fcd2522
Replace lens dependency for microlens
2016-05-21 13:31:39 -04:00
Christopher League
b089e0a7dd
Tweak .cabal to avoid unneeded recompilation
...
Previously when making a change and running `stack test`, it would
compile each module 3 times: for the library, the executable, and the
test suite.
This change more cleanly segregates the hs-source-dirs for each target,
which avoids recompilation. The only source change is moving Main.hs
into its own directory (but it's otherwise unchanged). See also:
<http://stackoverflow.com/questions/6711151/how-to-avoid-recompiling-in-this-cabal-file >
2016-05-18 09:55:52 -04:00
Joe Nelson
88aad4b1b6
Reload schema definition on SIGHUP ( #570 )
2016-04-26 07:50:23 -07:00
Joe Nelson
b8bbaa7764
Bump version
2016-03-28 13:26:06 -07:00
Joe Nelson
31738d745f
Regression test for read/write unicode table names
2016-03-25 15:14:00 -07:00
Joe Nelson
358254639a
Merge @ruslantalpa's fk improved detection
2016-03-12 12:42:57 -08:00
Joe Nelson
f67e195f76
Expose all claims via sql postgrest.claims
2016-03-11 20:51:22 -08:00
Ruslan Talpa
e43ad54dbf
Merge branch 'master' of https://github.com/begriffs/postgrest
2016-03-01 17:54:55 +02:00
Joe Nelson
cf176c4100
Allow aeson v11, but forbid deadly v10
2016-02-29 21:03:42 -08:00
Joe Nelson
dba827d1fd
List missing other-module in spec
2016-02-29 14:52:01 -08:00
Joe Nelson
e315ad99b4
Name the main module "Main" as required
2016-02-29 14:50:44 -08:00
Ruslan Talpa
0548d65911
main module of the executable needs to be Main, with PostgREST.Main build fails
2016-02-29 13:57:34 +02:00
Joe Nelson
4cd2475bf2
v0.3.1.0
2016-02-28 21:45:17 -08:00
Joe Nelson
7ba5363d25
Upgrade hasql to fix prepared statement problem
2016-02-26 08:18:47 -08:00
Joe Nelson
f28b03f419
Allow new hasql-transaction to do rollbacks
2016-02-25 20:13:03 -08:00
Joe Nelson
c02dd4aa98
Enable real threads in test
2016-02-22 17:53:10 -08:00
Joe Nelson
d4a4bbf966
Roll back on db errors
2016-02-22 16:52:50 -08:00
Joe Nelson
d5c1438c6e
Use hasql-transaction
...
Also use hspec before-wrapper
2016-02-21 18:05:25 -08:00
Joe Nelson
d7fe59f0b0
WIP: share server code between tests and program
...
- Share server code in Main
- Switch to hasql-pool
- Use pool in tests
- DRY up test runner
2016-02-21 12:22:18 -08:00
Joe Nelson
52e689b830
Add concurrent test for "transaction in progress"
...
MonadBaseControl wizardry courtesy of @jwiegley
2016-02-20 17:45:55 -08:00
Joe Nelson
0dd8a498b2
v0.3.0.4
2016-02-12 20:45:03 -08:00
Joe Nelson
e73a4c66bc
Do not block threads on libpq ffi
...
Fixes #445
2016-02-12 14:43:00 -08:00
Joe Nelson
e6e324e8ff
Trim unused packages
2016-01-28 17:32:38 -08:00
Joe Nelson
c887f2b3b4
Move ghc-options in stack config and out of cabal file
2016-01-28 14:03:44 -08:00
Joe Nelson
55da918240
Build with stack on CI and use harsher setttings
2016-01-27 16:12:48 -08:00
Joe Nelson
677c73cfe5
New versions of Warp do not export Connection
2016-01-24 18:09:21 -08:00
Joe Nelson
bbf8365cd2
Upgrade hasql
2016-01-24 18:09:20 -08:00
Joe Nelson
3be04d7f30
Upgrade hasql to fix connection error
2016-01-24 18:09:19 -08:00
Joe Nelson
fec316b087
WIP: fixing compiler errors in specs
2016-01-24 18:09:19 -08:00
Joe Nelson
3844f3ee96
The app compiles but totally untested
2016-01-24 18:09:19 -08:00
Joe Nelson
7b92449343
QueryBuilder compiles with hasql 19
2016-01-24 18:09:18 -08:00
Joe Nelson
d6102cc908
Use the correct Error types for hasql 0.19
2016-01-24 18:09:18 -08:00
Joe Nelson
2c1f9e7eac
v0.3.0.3
2016-01-08 18:27:14 -08:00
Joe Nelson
b46b3c7b9a
Conditional compilation for signal handling
...
Will not compile on windows
2015-12-16 18:05:48 -08:00
Joe Nelson
079cf0aa54
v0.3.0.2
2015-12-16 17:19:19 -08:00
Ruslan Talpa
3cd01f9859
Fix failing test after test structure optimization
2015-12-11 10:23:11 +02:00
Joe Nelson
67a3194903
Release all db connections on ctrl-c
...
Fixes #268
2015-12-07 16:54:59 -08:00
Joe Nelson
cbbb1871bb
Add --max-rows option (no automated tests yet)
...
Fixes #288
2015-12-05 19:03:18 -08:00
Joe Nelson
614b4dfbab
Remove deps deemed unnecessary by packunused
...
Also sort build-depends
2015-11-29 23:32:13 -08:00
Joe Nelson
cbc6685725
bcrypt is no longer a required dependency
...
Fixes #395
2015-11-29 23:02:34 -08:00
Joe Nelson
19b856db3b
v0.3.0.1
2015-11-27 13:04:47 -08:00
Ruslan Talpa
50745ad48b
Type refactoring (ApiRequest/DbRequest)
2015-11-23 10:12:29 +02:00
Joe Nelson
a0af096ff4
WIP: translate HTTP request into user intent
...
The app code will base its logic off the intent data
2015-11-18 19:18:13 -08:00
Diogo Biazus
f47d5e52f4
Moves all PgQuery module to QueryBuilder
2015-11-14 22:54:55 -05:00
calebmer
7560fafbab
Refactor DbStructure
...
- Rename `dbstructure` to `db` in App.hs
- Rename PgStructure* to DbStructure*
- Move `DbStructure` creation to DbStructure.hs
2015-11-11 09:03:06 -05:00
Ruslan Talpa
cd3a149aa4
Merge remote-tracking branch 'begriffs/v3' into v3
2015-10-24 21:25:01 +03:00