steve-chavez
32c7e32bdf
Allow embeds alias to be used in filters, fix #821
2018-04-02 11:09:45 -05:00
steve-chavez
062a5581f5
Allow specifying source column in embed, fix #1078
2018-04-02 11:09:45 -05:00
steve-chavez
50512e1117
Refactor addRelations and findRelation functions
...
Just reordering and renaming variables to reduce indentation, logic remains the same.
2018-04-02 11:09:45 -05:00
steve-chavez
edae60f8c1
Only alias tables on self join cases
2018-04-02 11:09:45 -05:00
steve-chavez
243e692192
Refactor some functions to use concatMap
2018-03-17 07:53:41 -05:00
steve-chavez
349a5ae076
Fix Parent Relation when having many views( #1044 )
2018-03-17 07:53:41 -05:00
steve-chavez
ff709a65e5
Add FROM targets aliasing to avoid conflict in embeds
2018-02-21 09:23:08 -05:00
steve-chavez
8e2a0e05ea
Refactor QueryBuilder and DbRequestBuilder
...
- Refactor ORDER BY and LIMIT query fragments
- Move ReadRequest building to DbRequestBuilder
- Clarify Relation link table attributes
- Change Join Operation to JoinCond
2018-02-21 09:23:08 -05:00
steve-chavez
108f3cd651
Add Preference-Applied header for POST upsert
...
- Ensure creating nothing on ignore-duplicates succeeds
- Refactor locationF query
2018-02-21 07:33:54 -05:00
steve-chavez
6675821c64
Allow PUT method: UPSERT of a single row
2018-02-21 07:33:54 -05:00
steve-chavez
85b1dc0eb4
Add UPSERT for POST with Prefer:resoultion=merge/ignore-duplicates
2018-02-21 07:33:54 -05:00
Joe Nelson
102392e4ab
Move canadaduane's changelog entry to Added
2018-02-19 21:55:03 -06:00
Duane Johnson and Joe Nelson
a46b6f5020
Pass custom settings to the DB's SESSION ( #1063 )
...
- allows queries to refer to current_setting('app.settings.foo') to retrieve variables
- useful for 12-factor apps (app data can be in environment)
- provides workaround for AWS Relational Database Service (RDS) not
allowing `ALTER DATABASE SET 'app.[KEY]' TO '[VALUE]'` on database.
2018-02-19 12:41:22 -06:00
steve-chavez
70ce1b9329
Reduce memory usage of uniform json array restriction
2018-01-27 13:55:20 -05:00
steve-chavez
516976e32f
Add memory usage tests
2018-01-10 11:43:16 -05:00
steve-chavez
f7e7834a1c
Handle overloaded function case
...
* Add test for params=single-object on GET
* Add tests for procs with DEFAULT args
* Add tests for overloaded functions
* Add test for PATCHing with an empty json array, this previously
gave a "Something is wrong" error
2018-01-10 11:43:16 -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
steve-chavez
f159233de8
Change UPDATE query to a parametrized query
2018-01-10 11:43:16 -05:00
steve-chavez
02a286a4b1
Change callProc query to a parametrized query
2018-01-10 11:43:16 -05:00
steve-chavez
85d9feeeab
Add set schema to middleware
...
Fix #828 , breaking change: computed columns now only work if they are on
the config schema.
Fix #835 , tests now not depend on the search_path of the
postgrest_test_authenticator.
2018-01-10 09:50:20 -05:00
Joe Nelson
f9e770b583
Bump to 0.4.4.0
v0.4.4.0
2018-01-08 21:01:39 -06:00
Ruslan Talpa and GitHub
effbec234f
Faster queries using json_agg
2017-12-12 15:44:50 +02:00
Ruslan Talpa and GitHub
e4183780a9
Fix #1016
2017-12-12 15:31:39 +02:00
Joe Nelson and GitHub
804c0b7f6b
Include git sha in version ( #1022 )
2017-12-08 00:29:44 -06:00
steve-chavez
fef7d949d9
Fix #411 , remove the need for pk in &select for parent embed
2017-11-30 12:56:18 -05:00
steve-chavez
be630aa680
Change phrase/plain full text search syntax
2017-11-27 11:38:54 -05:00
Joe Nelson
678b855614
Changelog entry for nextstopsun
...
Also trim trailing whitespace
2017-11-25 15:15:14 -06:00
Nikolai Lebedev and Joe Nelson
546b766022
Reduce join size on allColumns for start speed ( #1021 )
2017-11-25 15:11:59 -06:00
steve-chavez
57477749aa
Run tests on both PostgreSQL 9.4 and 9.6 on CircleCI
2017-10-18 17:41:55 -05:00
steve-chavez
188f947437
Maintain backward compatibility on GUC headers feature
...
If pg version >= 9.6 is detected the feature is enabled,
also all of the 9.6 dependent tests are moved to their own spec.
2017-10-18 17:41:55 -05:00
steve-chavez
b9a591aecb
Add ability to map GUC to http response headers
2017-10-18 17:41:55 -05:00
steve-chavez
38de56de4a
Add ability to map raise errorcode/message to http status
2017-10-18 17:41:55 -05:00
Pi3r and Joe Nelson
d9a250d2cb
Remove hjsonpointer ( #1004 )
...
It is a deps of hjsonchema and does not need to be pinned to a specific version.
2017-10-18 13:11:21 -04:00
Pi3r and Joe Nelson
2b5ae34c5a
Update jose to 0.6 ( #997 )
2017-10-15 10:49:25 -04:00
steve-chavez
d1a8c3a6f8
Fix #974 RPC error when function has single OUT param
2017-10-09 10:45:17 -05:00
steve-chavez
7a3f350f1c
Fix bad OpenAPI output when having functions with OUT/INOUT params
2017-10-09 10:45:17 -05:00
steve-chavez
e1cab584a3
Add test for #996 embed bug when table name = column name
2017-10-09 10:45:17 -05:00
grotsev and Joe Nelson
8f49f731d0
Fix embedded column conflicts table name ( #996 )
2017-10-05 21:03:27 -05:00
Joe Nelson and GitHub
7bf384d0f8
Link to new docker hub repo ( #995 )
2017-10-03 11:04:51 -05:00
Eric Bréchemier and Joe Nelson
65c9d549c1
Read secret file as binary, without premature parsing as UTF-8 ( #876 ) ( #988 )
2017-09-28 21:54:50 -05:00
Steve Chávez and Joe Nelson
a6cce691b5
Fix RPC GET filters bugs with not/{plain,phrase}fts operators ( #980 )
2017-09-26 20:07:36 -07:00
Elliot Murphy and Joe Nelson
3ccae4bb8b
Allow configurable audience claim ( #975 )
2017-09-26 07:29:20 -07:00
Steve Chávez and Joe Nelson
4ba27d84a4
Fix some OpenAPI issues ( #970 )
...
* Fix #933 , update externals docs url to current version
* Fix #962 , openApi don't err on nonexistent schema
* Fix #954 , make OpenAPI rpc output dependent on user privileges
2017-09-25 23:09:52 -07:00
Steve Chávez and Joe Nelson
cf19ad0369
Allow GET on RPC ( #946 )
2017-09-17 11:16:46 -05:00
Joe Nelson and GitHub
32117ba477
Dockerfile has typo in server proxy uri variable ( #968 )
...
* s/URL/URI/ in dockerfile
* Treat blank proxy uri as missing
2017-09-09 15:58:37 -05:00
Joe Nelson and GitHub
893b66c969
Merge pull request #964 from steve-chavez/tsquery-options
...
Allow specifying dictionary and plain/phrase in full text search
2017-09-09 10:17:02 -05:00
steve-chavez
6c2f179b48
Remove isnot and notin operators and refactor
2017-09-08 19:56:00 -05:00
steve-chavez
dff4d766a8
Allow dictionary and plain/phrase in fts
2017-09-08 19:56:00 -05:00
steve-chavez
d98a05023d
Change circle build-test job to use PostgreSQL 9.6.2
2017-09-08 19:56:00 -05:00
ilovezfs and Joe Nelson
0d37be9017
Constrain jose to < 0.6 ( #967 )
2017-09-08 13:16:00 -05:00