Skip to content
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

Support for multiple schemas #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bhaan
Copy link

@bhaan bhaan commented Dec 4, 2023

What kind of change does this PR introduce?

Feature

What is the current behavior?

The query builder does not set an HTTP Profile header for the client schema. This means the current behavior uses the default schema according to the PostgREST server configuration.

What is the new behavior?

The query builder will now assign the client schema to the Accept-Profile and Content-Profile HTTP headers for each query. These values can be overridden using the extra_headers method parameters.

Additional context

Relevant PostgREST documentation:
https://postgrest.org/en/stable/references/api/schemas.html#multiple-schemas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant