Steve Chávez and GitHub
16af470a99
Add shell.nix ( #1298 )
2019-05-22 10:26:36 -05:00
steve-chavez
3c7738a8c7
Deprecate '.' for disambiguating resource embedding
...
'+' should be used instead.
2019-05-19 13:18:03 -05:00
steve-chavez
27ca6b4e90
Pin hasql versions in cabal and stack
2018-09-28 08:57:26 -05:00
steve-chavez
8cf68c63d9
Fix segmentation fault/access violation on windows 10
...
This was reported in https://gitter.im/begriffs/postgrest?at=5b7431eb5b07ae730ac083af
and according to https://ghc.haskell.org/trac/ghc/ticket/13112#comment:25
this is an issue with linking in postgresql-libpq. The 0.9.4.1 version
contains a patch(https://github.com/lpsmith/postgresql-libpq/pull/45 ) that fixes the issue.
2018-08-21 11:27:44 -05:00
Felix Yan and Steve Chávez
9ea7529f30
Use protolude 0.2.2, replace undefined with witness
...
protolude provides headMay since 0.2.2, it can be used instead of safe.
2018-05-28 13:08:27 -05:00
steve-chavez
5c87fe2704
Add getCurrentTime cache for jwt validation
2018-04-30 11:31:06 -05:00
steve-chavez
38f3bcf4a6
Reduce memory usage by avoiding Aeson encode
...
It was detected that Aeson encoding had high memory usage when
the json payload was large, around x60 the payload size.
With this change we get around x10 payload size memory usage.
The encodeUtf8(when doing a Text -> ByteString with `toS`) function
on a large payload also contributed to the high memory usage.
Main idea to reduce the memory usage was to let the ByteString coming
from the request body go to the database unchanged.
2018-01-10 11:43:16 -05:00
Pi3r and Joe Nelson
2b5ae34c5a
Update jose to 0.6 ( #997 )
2017-10-15 10:49:25 -04:00
Felix Yan and Joe Nelson
69070b64f9
Fix compatibility with protolude-0.2 ( #939 )
...
This allows the Arch Linux PostgREST package to build cleanly
2017-08-14 01:36:33 -05:00
Joe Nelson and GitHub
d89937a6f3
Upgrade to fast new hasql ( #836 )
2017-08-10 01:54:15 -05:00
Joe Nelson and GitHub
0ed4215a0d
Support asymmetric JWK ( #919 )
2017-08-09 08:42:00 -05:00
Joe Nelson and GitHub
74227d3c2b
Use env interpolation in config ( #826 )
2017-05-24 22:50:09 -05:00
Steve Farmer and Joe Nelson
0b486ccf44
Increase Warp connection timeout ( #834 )
2017-03-21 19:50:24 -07:00
Diogo Biazus and Joe Nelson
728e40c96c
Update hspec-wai to 0.8.0 ( #799 )
2017-02-14 21:18:01 -08:00
Pi3r and Joe Nelson
1d8318ce26
Increase lower and upper bound for optparse-applicative ( #794 )
2017-02-03 10:00:13 -08:00
Joe Nelson and GitHub
9b407034a8
Bump version
2017-01-20 00:21:08 -08:00
Joe Nelson and GitHub
104a7ed4fa
Use a mime type to request singular JSON responses ( #763 )
2017-01-16 15:11:37 -08:00
J Phani Mahesh
37d3c851cf
add nix.packages to stack.yaml
...
postgrest depends on postgres and zlib. When using stack's nix
integration, these dependencies must be specified explicitly.
Note that `--nix` must be passed to stack, or `nix.enable:true` must
be set in `stack.yaml` to enable using nix while building.
2016-10-26 15:49:53 +05:30
Joe Nelson and GitHub
74e68408e6
Bring packages up to date ( #722 )
...
* Bring packages up to date
* New LTS includes deps now
Use stack to select most versions
* Alphabetize packages
* Strip down packages
Switch tests to protolude
* Appease cabal check with base version constraint
2016-10-19 22:25:58 -07:00
Joe Nelson
c98450d1d5
Use real version of hjsonschema
...
Its raw commit on github no longer exists
2016-07-18 11:37:38 -07:00
Jacky Hu
1fef1991ef
Add proxy awareness for OpenAPI spec generation
...
Proxy uri from command line options takes precedence over host and port
2016-07-07 19:20:40 +08:00
Joe Nelson
9c42a78cf3
Upgrade hasql-transaction
2016-06-25 21:24:21 -07:00
Jacky Hu
86e81c135e
Use hjsonschema from the develop branch
2016-06-18 10:18:43 +08:00
Jacky Hu
0220040341
Add test to validate openapi spec
2016-06-18 10:18:43 +08:00
Jacky Hu
d1ed884a8d
Introduce the OpenAPI header
...
Also bring back the original behavior of GET "/"
2016-06-18 10:18:43 +08:00
Jacky Hu
563c5fa778
Make hostname configurable
2016-06-18 10:18:43 +08:00
Jacky Hu
cf4e157de7
Provide a swagger2 spec for the dynamic API
...
Related issue: #144
2016-06-18 10:18:43 +08:00
Joe Nelson and GitHub
42110643a3
Use newer deps for GHC 8 compatibility ( #619 )
2016-06-09 18:50:13 -07:00
Joe Nelson
38afe71ec7
Upgrade extra-deps and LTS
2016-05-22 11:00:37 -07: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
Ruslan Talpa
40a30d7b02
Fix view column source detection
2016-02-29 13:10:33 +02: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
072a6ce4c7
Bump hasql to 0.19.8
2016-02-21 18:37:17 -08:00
Joe Nelson
d5c1438c6e
Use hasql-transaction
...
Also use hspec before-wrapper
2016-02-21 18:05:25 -08:00
Joe Nelson
30e5032ade
Use lower optimization to speed up regular dev builds
2016-02-21 14:11:46 -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
c887f2b3b4
Move ghc-options in stack config and out of cabal file
2016-01-28 14:03:44 -08:00
Joe Nelson
536acec820
Turn down warning level a little
2016-01-27 17:31:57 -08:00
Joe Nelson
55da918240
Build with stack on CI and use harsher setttings
2016-01-27 16:12:48 -08:00
Joe Nelson
dac31c4f2e
Use newer LTS to avoid potential aeson problem
2016-01-27 11:00:40 -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
7b92449343
QueryBuilder compiles with hasql 19
2016-01-24 18:09:18 -08:00
Diogo Biazus
066d120c0e
Changes stack resolver to nightly.
2015-10-31 12:01:26 -04:00
Diogo Biazus
5de9db0ca1
Updates stack resolver to 3.10 and adds new hspec to custom build plan
2015-10-23 15:44:18 -04:00
Diogo Biazus
0df6ea57ae
Updates stackage resolver to 3.7
2015-09-30 23:35:44 -04:00
Diogo Biazus
f9d50018d9
Rollback to aeson 0.8.0.2 to allow building with stackage, and adds stack.yml
2015-08-20 15:50:28 -04:00