-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version detection #14
Comments
Hm, what's the need for the version? |
@steve-chavez For the Info Object it's mostly to get the same result as the core repo. But it may be also needed to generate the documentarion URL (although this one needs a simplified version). Edit: Btw I mistakenly said "PostgreSQL" version instead of "PostgREST" version. |
Got it. So I guess the same problem exists for the postgrest-openapi/sql/main.sql Lines 3 to 6 in 106e51c
While the Maybe we need a concept of session-scoped settings on PostgREST to make this work. So each config option (coming from file or env var) gets a |
What are tx-settings? I'm assuming it means transaction settings? Is this set_config within a transaction or something? |
@wayland Yes, basically |
We need to find a way on how to detect the PostgREST version. Maybe using this PostgREST/postgrest#2647 could help, but if it fails it needs to be retrieved from another source.
https://github.com/laurenceisla/postgrest-openapi/blob/74430c6e72fdf745a63727020679101a50c4fd6d/src/postgrest.sql#L506-L511
The text was updated successfully, but these errors were encountered: