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
laurenceisla and GitHub
34958e723a
Add link and explanation to download the latest unreleased builds
2021-09-03 13:04:21 -05:00
Wolfgang Walther and Steve Chavez
b05898d17f
fix: Return array of objects for RPCs with single-column TABLE return type
...
This is a regression after changing responses for RPCs with INOUT or OUT arguments in #1615 .
Resolves #1930 .
2021-09-02 10:13:03 -05:00
steve-chavez
d4c6abbaec
feat: RPC POST for function w/single unnamed param
...
For POST on RPC, allows:
* passing a json object without using `Prefer: params=single-object`
The function must be defined with a single unnamed json param and
`Content-Type: application/json` must be specified.
* uploading binary to a function
The function must be defined with a single unnamed bytea param and
`Content-Type: application/octet-stream` must be specified.
* uploading raw text to a function
The function must be defined with a single unnamed text param and
`Content-Type: text/plain` must be specified.
BREAKING CHANGE 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". For solving this, you can name the unnamed json param.
my_func(json) -> my_func(prm json)
2021-08-30 18:17:59 -05:00
steve-chavez
caaa34b5de
refactor: add CallQuery type
...
Shortens requestToCallProcQuery, which should generate SQL in a more
direct way.
2021-08-30 18:17:59 -05:00
steve-chavez
c9a60373f6
refactor: PgArg to ProcParam
...
Clarify the difference between arguments and parameters.
Parameters are part of the function definition, arguments are the values
passed to the function.
Also clarify the findProc function comments and error message.
2021-08-30 18:17:59 -05:00
laurenceisla and GitHub
ed5072f4b1
fix: Detect default values for String types in OpenAPI output ( #1928 )
2021-08-27 21:59:54 -05:00
Felix Yan and Remo
ed98ac9d7e
Allow newer base, hspec, and retry
...
Builds fine and all tests are passing here, with the new versions.
2021-08-19 18:44:30 +02:00
Gaurav Gautam and GitHub
d9f1ae6a46
feat: Add Retry-After hint ( #1916 )
...
Add Retry-After header when response status is 503.
Its value is the connection worker delay(seconds) when
it's recovering.
This closes issue #1817 .
2021-08-18 10:14:29 -05:00
Wolfgang Walther and Remo
5874482f03
nix(fix): Database cluster not cleaned up before artifact upload
2021-08-15 12:35:52 +02:00
Wolfgang Walther and Remo
0511e99dd4
nix(refactor): Add withPath to checkedShellScript
2021-08-15 12:35:52 +02:00
laurenceisla and GitHub
91152ebad0
Add partitioned tables in the schema cache
2021-08-13 17:31:01 -05:00
laurenceisla and GitHub
4e4548d702
feat: Include partitioned tables into the schema cache
...
Allows embedding, UPSERT, INSERT with Location response, OPTIONS request and OpenAPI support for partitioned tables
2021-08-13 15:06:56 -05:00
Laurence Isla
f7108e8612
Add example apps to ecosystem
...
Add postgres-postgrest-cloudflared-example and svelte-postgrest-template
2021-08-11 20:13:04 -05:00
steve-chavez
0d23be7731
Fix logging blocks not showing on RTD
2021-08-10 00:37:25 -05:00
steve-chavez
fcabf4012b
Reorder release notes for v8.0
2021-08-10 00:26:24 -05:00
Laurence Isla
ff30d4d417
Update config.py version/release
2021-08-09 18:29:37 -05:00
laurenceisla and GitHub
98350e2941
Update docker configuration
2021-08-09 18:06:45 -05:00
steve-chavez
42656edfd9
Improve wording in some sections
2021-08-09 14:10:46 -05:00
Laurence Isla and Steve Chavez
37c2a8aa7b
Make the landing page wider
...
* Add max-width for logos only
* Fix margin on sponsor images and add reference to the PostgREST team
* Fix information on v8 changelog
2021-08-09 14:10:46 -05:00
Laurence Isla and Steve Chavez
21e54aacda
Rename upcoming to v8.0.0
2021-08-09 14:10:46 -05:00
Laurence Isla and Steve Chavez
12f8852183
Add fixes and sponsors to upcoming page
2021-08-09 14:10:46 -05:00
steve-chavez
254a2f7f36
Add in-db config plus reloading
2021-08-09 14:10:46 -05:00
steve-chavez
698db87590
Reorder configuration reloading
2021-08-09 14:10:46 -05:00
steve-chavez
8d4bc76aab
Add entry for OPTIONS on views
...
* Also clarify the schema cache page
2021-08-09 14:10:46 -05:00
steve-chavez
52cdd50561
Show timestamps for server diagnostic information
2021-08-09 14:10:46 -05:00
steve-chavez
57d725bab6
Add Bearer without capitalization
2021-08-09 14:10:46 -05:00
steve-chavez
9543e746ec
Mention log-level=crit/error increase throughput
2021-08-09 14:10:46 -05:00
steve-chavez
33f0da0509
Add no downtime schema cache reload
2021-08-09 14:10:46 -05:00
Remo
b3899e7aa4
ci: Set Docker Hub username
2021-08-08 06:42:59 +02:00
monacoremo
6d9fcfa09f
ci: Remove unused create_test_db script
2021-08-08 06:42:59 +02:00
monacoremo
38e5b76996
ci: Remove appveyor.yml
2021-08-08 06:42:59 +02:00
monacoremo
ca4539e78d
ci: Remove .travis.yml
2021-08-08 06:42:59 +02:00
monacoremo
a54a61d00e
ci: Remove .circleci/config.yml
2021-08-08 06:42:59 +02:00
monacoremo
142fc06b15
ci: Add .github/release script that tags and pushes a new release
2021-08-08 06:42:59 +02:00
monacoremo
c7b1cda3ed
ci: Move codecov.yml and add thresholds as intermittent fix to random coverage changes
2021-08-08 06:42:59 +02:00
monacoremo
fb2adea5e9
ci: Adjust build status badge in READMEs
2021-08-08 06:42:59 +02:00