Joe Nelson
cd81e9346f
Do not do table count when plurality=singular
...
Rebasing commits by @ruslantalpa
2016-03-23 20:30:51 -07:00
Joe Nelson
01355f39a1
Merge pull request #524 from begriffs/unicode-inserts
...
Preserve unicode in requests and responses
2016-03-18 11:59:36 -07:00
Joe Nelson
87298f580a
Merge pull request #528 from rowdypixel/patch-1
...
Fix typo-d flag in the installation docs.
2016-03-18 09:47:46 -07:00
Joe Nelson
3bfe64dd06
Create monomorphic statement function to force use of Text
2016-03-16 21:04:18 -07:00
Dan Walker
b9d3eedb9d
Fix typo-d flag in the installation docs.
2016-03-14 21:28:46 -04:00
Joe Nelson
bb4126bf3a
Merge pull request #526 from daurnimator/no-uuid-ossp
...
Remove remaining uuid-ossp references
2016-03-14 09:18:45 -07:00
daurnimator
2e440822cb
remove unnessecary create extension "uuid-ossp"
2016-03-14 20:52:51 +11:00
daurnimator
13eed84f57
Use gen_random_uuid instead of uuid_generate_v4
2016-03-14 20:51:35 +11:00
Joe Nelson
e5fed86965
Changelog
2016-03-13 14:33:00 -07:00
Joe Nelson
3c5fab009b
Remove ancient test comments
2016-03-13 14:22:36 -07:00
Joe Nelson
b858626e17
For correctness include charset=utf-8 in responses
2016-03-13 14:22:17 -07:00
Joe Nelson
330cc91645
Protect unicode values in requests
2016-03-13 14:20:54 -07:00
Joe Nelson
1037824e11
Merge pull request #523 from begriffs/single-proc-call
...
Prevent duplicate call to stored procs
2016-03-12 23:34:25 -08:00
Joe Nelson
4cc08a11e7
Prevent duplicate call to stored procs
...
Reuse a CTE for results of call
2016-03-12 18:28:36 -08:00
Joe Nelson
358254639a
Merge @ruslantalpa's fk improved detection
2016-03-12 12:42:57 -08:00
Joe Nelson
43bc9bfa83
Merge pull request #522 from begriffs/full-jwt
...
Allow SQL functions to generate registered JWT claims
2016-03-12 12:26:36 -08:00
Joe Nelson
a779e9eb8b
Batch the sql commands to set local vars
2016-03-11 23:45:05 -08:00
Joe Nelson
f67e195f76
Expose all claims via sql postgrest.claims
2016-03-11 20:51:22 -08:00
Joe Nelson
508d722fb2
Allow SQL functions to generate registered JWT claims
2016-03-10 21:58:43 -08:00
Joe Nelson
14d7364f4b
Merge pull request #521 from dex-ethics/spelling
...
Spelling fixes in documentation
2016-03-09 12:15:28 -08:00
Remco Bloemen
bfbce27a65
Spelling fixes in documentation
2016-03-09 15:47:12 +01:00
Joe Nelson
00a23058c8
Merge pull request #511 from dex-ethics/docker-exec
...
Use `CMD exec` in Dockerfile
2016-03-07 22:34:16 -08:00
Remco Bloemen
82c74ed21f
Use CMD exec in Dockerfile
...
Without exec the `postgrest` process is not run with PID 1 (it
is a child process of the shell that starts it). This means
signals send to the docker (like `docker stop` or ^C) will
not be handled correctly.
However, Linux treats PID 1 as special and sets the SIGTERM
handler to ignore by default. It is also necessary to install
a SIGTERM handler.
This commit adds `exec` to resolve this problem, as per the
recommendation in the Dockerfile documentation:
https://docs.docker.com/engine/reference/builder/#shell-form-entrypoint-example
2016-03-07 18:30:40 +01:00
Joe Nelson
5f0b4977da
Merge pull request #514 from dex-ethics/docs
...
Minor changes in documentation
2016-03-07 09:15:16 -08:00
Remco Bloemen
82214856b6
Split build and install in build from source instructions.
...
Stack refuses to build when run under sudo.
2016-03-07 17:54:37 +01:00
Remco Bloemen
c09adb967a
Use gen_random_uuid() in user management example.
...
The function uuid_generate_v4() is not available
without extensions.
2016-03-07 17:53:55 +01:00
Remco Bloemen
e5d420b2db
Gracefull exit on sigTERM
...
Like the sigINT that was already handled, postgrest
should gracefuly shut down on a sigTERM. This is a
common way of stopping processes, used amongst
others by docker.
See: https://stackoverflow.com/questions/4042201/how-does-sigint-relate-to-the-other-termination-signals
2016-03-07 17:45:53 +01:00
Joe Nelson
ef021056c9
Merge pull request #497 from bobcolner/bobcolner-dockerfile
...
PostgREST Dockerfile
2016-03-05 13:20:05 -08:00
Bob Colner
b7b082cd8e
updated Dockerfile to use postgrest 3.1.0
2016-03-05 13:07:11 -08:00
Bob Colner
a02632f18c
Update Dockerfile
2016-03-05 12:53:33 -08:00
Ruslan Talpa
e43ad54dbf
Merge branch 'master' of https://github.com/begriffs/postgrest
2016-03-01 17:54:55 +02:00
Joe Nelson
8af91e262c
Merge pull request #508 from begriffs/test-plain-build
...
Test that binary builds, not just that suite passes
v0.3.1.0
2016-02-29 22:49:33 -08:00
Ruslan Talpa
7b94fb608d
suggestions by @diogob
2016-03-01 08:08:57 +02:00
Joe Nelson
cf176c4100
Allow aeson v11, but forbid deadly v10
2016-02-29 21:03:42 -08:00
Joe Nelson
c61418635e
Ensure helper binaries get re-installed
...
Sadly causes all extra-deps to rebuild every time
2016-02-29 20:45:34 -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
Joe Nelson
088df7e6be
Test that binary build succeeds
...
Work around https://github.com/commercialhaskell/stack/issues/1846
2016-02-29 14:25:34 -08:00
Ruslan Talpa
40eec0b2ff
code beautify using stylish-haskell
2016-02-29 14:53:41 +02:00
Ruslan Talpa
77bec52be7
Fix compile notice
2016-02-29 14:11:48 +02:00
Ruslan Talpa
155d1dee6b
changelog entry
2016-02-29 13:59:04 +02: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
Ruslan Talpa
40a30d7b02
Fix view column source detection
2016-02-29 13:10:33 +02:00
Ruslan Talpa
62af792add
Add failing test to test correct view column detection
2016-02-29 11:37:23 +02:00
Joe Nelson
4cd2475bf2
v0.3.1.0
2016-02-28 21:45:17 -08:00
Joe Nelson
fc4c792f9e
Move section in changelog
2016-02-26 12:17:24 -08:00
Joe Nelson
c094e5a0fc
Merge pull request #489 from diogob/apply_range_headers_to_rpc
...
Apply range headers to rpc
2016-02-26 12:10:33 -08:00
Diogo Biazus
9d0f3573c6
Implements query counting in proc call and adds Content-Rage to response
...
headers in /rpc calls.
2016-02-26 14:51:35 -05:00
Diogo Biazus
4496a95014
Updates changelog
2016-02-26 14:41:27 -05:00
Diogo Biazus
893b7a7126
Applies range headers to /rpc calls using LIMIT/OFFSET.
2016-02-26 14:41:27 -05:00