monacoremo
71cb8afc0d
refactor: Remove Protolude.Conv from JSPath
2021-11-12 20:25:22 +01:00
monacoremo
36dbd09459
refactor: Remove Protolude.Conv from ApiRequest
2021-11-12 20:25:22 +01:00
monacoremo
fa4df95f55
refactor: Remove Protolude.Conv from Parsers
2021-11-12 20:25:22 +01:00
monacoremo
4104f5fb75
refactor: Remove Protolude.Conv from App
2021-11-12 20:25:22 +01:00
monacoremo
abb6167caa
refactor: Remove Protolude.Conv from DbStructure
2021-11-12 20:25:22 +01:00
monacoremo
15ea7dfe09
refactor: Remove Protolude.Conv from GucHeader
2021-11-12 20:25:22 +01:00
monacoremo
a2c2544271
refactor: Remove Protolude.Conv from Config
2021-11-12 20:25:22 +01:00
Laurence Isla and GitHub
4720cfc1d3
Add example to rpc unnamed single bytea parameter
2021-11-11 17:02:17 -05:00
Laurence Isla and GitHub
4e4458eb95
Allow POST rpc with a single unnamed parameter
2021-11-10 19:35:44 -05:00
monacoremo
2b22f889bd
refactor: Remove GHC.Show instances from JSPath module
2021-11-09 19:13:52 +01:00
monacoremo
cd3013569e
refactor: Remove GHC.Show instances from QualifiedIdentifier and Config
2021-11-09 19:13:52 +01:00
monacoremo
5dc37fc8e8
refactor: Remove GHC.Show instances from Request.Types module
2021-11-09 19:13:52 +01:00
monacoremo
038d84b62d
refactor: Remove GHC.Show instances in Preferences module
2021-11-09 19:13:52 +01:00
Laurence Isla and GitHub
40f9a6068a
Allow overloaded functions if one has a single unnamed JSON param
...
Avoids the breaking change in #1927 : If there's a function "my_func" having a single unnamed json param and other overloaded pairs(with any number of params), PostgREST won't be able to resolve a POST request to "my_func".
2021-11-08 18:26:33 -05:00
Laurence Isla and GitHub
8b74e14c4f
Use tabs to show different installation methods
2021-11-08 12:27:22 -05:00
monacoremo
5cd7d35966
refactor: Make import aliases consistent across the codebase
2021-11-05 08:08:00 +01:00
monacoremo
71262fbc5c
nix: Hook hsie check-aliases into postgrest-lint
2021-11-05 08:08:00 +01:00
monacoremo
d16a4a9a2b
nix: fix statix hints
2021-11-02 23:10:23 +01:00
monacoremo
2357961f48
nix: add statix to postgrest-style
2021-11-02 23:10:23 +01:00
monacoremo
162c4e38af
Update stackage to LTS 18.14 (GHC 8.10.7)
2021-11-01 23:23:19 +01:00
monacoremo
0f95900822
nix: Upgrade hsie tool to GHC 8.10.7
2021-11-01 23:23:19 +01:00
monacoremo
8ac14447ef
nix: Update nixpkgs to latest unstable version
2021-11-01 23:23:19 +01:00
Laurence Isla and GitHub
7cc3d319bc
Fix broken styles
2021-10-29 15:11:39 -05:00
Laurence Isla and GitHub
a0bdcb706c
Add curl examples alongside http snippets
2021-10-28 18:06:52 -05:00
Laurence Isla and GitHub
23ad30a20a
Add templates section to the ecosystem
2021-10-28 17:47:21 -05:00
Wolfgang Walther and Wolfgang Walther
a1b3bca7fc
fix: Make pfkSourceColumns query work with standard_conforming_strings = off
2021-10-28 08:21:11 +02:00
Wolfgang Walther and Wolfgang Walther
8cde90b7fe
refactor: Use include_triggers argument to pg_relation_is_updatable instead of manual check
2021-10-26 19:15:02 +02:00
Laurence Isla and GitHub
b15dd8783e
Add Retry-After header when recovering the connection
2021-10-21 21:08:29 -05:00
Laurence Isla and GitHub
8e11b6f5df
Allow escaping inside double quotes with a backslash ( #447 )
2021-10-20 16:13:49 -05:00
Wolfgang Walther and Wolfgang Walther
7e7d4df93b
docker-compose: remove optional quotes around environment variable
...
Resolves #446
2021-10-20 13:17:41 +02:00
laurenceisla and GitHub
c6ef4305b1
Allow top-level resource with embed filter
2021-10-19 11:34:18 -05:00
laurenceisla and GitHub
ee1ec780d2
Add nested embedding examples
2021-10-18 17:34:49 -05:00
3b83f536ca
Correct inner join to use proper aliases ( #1978 )
...
"_" was used for all the internal json_agg aliases. Now an alias
with "_" plus a local table name is used.
Co-authored-by: Cole Arendt <cole.arendt@outlook.com >
2021-10-18 17:34:31 -05:00
laurenceisla and GitHub
42d7cf8ae5
Add db-embed-default-join config parameter to the configuration example
2021-10-15 19:09:40 -05:00
laurenceisla and GitHub
ec7ace2e73
Add compatibility with PostgreSQL v14
2021-10-13 14:31:49 -05:00
laurenceisla and GitHub
627c3c34b7
feat: Make GUC names for headers, cookies and jwt claims compatible with PostgreSQL v14
...
Getting the value for a header GUC on PostgreSQL v14 is done using `current_setting('request.headers')::json->>'name-of-header'` and in a similar way for `request.cookies` and `request.jwt.claims`
PostgreSQL versions below 14 can opt in to the new JSON GUCs by setting the `db-use-legacy-gucs` config option to false (true by default)
2021-10-12 12:58:52 -05:00
steve-chavez
ee56dd5db1
feat: filter top-level resource with embed filter
...
This is enabled by adding `!inner` to the embedded resource
/projects?select=*,clients!inner(*)&clients.id=eq.12
This behaviour can be enabled by default with the config option
db-embed-default-join='inner'
Which saves the need for specifying `!inner` on every request.
If this is enabled, the previous behavior can be restored
per request by specifying `!left` on the embedded resource.
/projects?select=*,clients!left(*)&clients.id=eq.12`
Tested on M20/02M/M2M relationships, views, RPC.
2021-10-04 13:46:32 -05:00
steve-chavez
bf91187e63
Drop support for embed hints used as '.'
...
Hints used like `select=projects.client_id(*)` were already
deprecated.
'!' should be used from now on `select=projects!client_id(*)`
2021-10-04 13:46:32 -05:00
Bartłomiej Szostek and Laurence Isla
ad13e00f64
Typo in api.rst, correct ignore_privileges
...
The correct setting name is `ignore-privileges`, with dash in between the words.
2021-10-04 10:46:02 -05:00
laurenceisla and GitHub
a6a088e9f0
Specify external connection poolers
2021-09-30 17:18:58 -05:00
monacoremo
2982c5de2e
nix: Fix postgrest-check
2021-09-23 22:36:58 +02:00
monacoremo
add95c32ca
ci: Fix triggering events and release actions
...
* Run CI only on pull requests, push to main and push
to tags matching v*. This avoids running the CI more than
once for a single user action
* Change pre-releases, which are now identified by a version
number with 4 components (e.g., 1.1.1.1)
* Change how release artifacts are packaged, ensuring they
are executable and compressed with xz
2021-09-23 22:36:58 +02:00
Boris Korzun and GitHub
09ca21d032
Updated FreeBSD dependencies
...
Update FreeBSD dependencies as in bsd.default-versions.mk
2021-09-22 12:52:37 -05:00
laurenceisla and GitHub
243e4f0408
test: correct limit proc results tests ( #1951 )
...
Query params where being appended using `?` instead of `&`
2021-09-16 22:03:35 -05:00
Laurence Isla
5fb11e37a3
Add devops links to helm charts
2021-09-15 19:45:47 -05:00
steve-chavez
885ff60138
pre-release: Bump to v9.0.0-a1
2021-09-14 15:51:32 -05:00
steve-chavez
72a28a145d
feat: Allow backslash escaping inside double quotes
...
Examples:
- ?col=in.("Double\"Quote")
- ?col=in.("Back\\slash")
Backslashed chars get passed as is
- ?col=in.("\a\b\c") = ?col=in.(abc)
2021-09-13 19:06:30 -05:00
steve-chavez
4a594d5e95
fix: using " and \ as values on the in filter
...
Properly escape the array literal built at the QueryBuilder
stage.
2021-09-13 19:06:30 -05:00
Remo
0ba133a0bd
ci: Fix FreeBSD build
2021-09-08 19:11:00 +02:00
Laurence Isla
aea3b24b31
Update example apps
2021-09-03 15:05:15 -05:00