-
-
Notifications
You must be signed in to change notification settings - Fork 394
Closed
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomerspostgrestIssues related to postgrest-pyIssues related to postgrest-py
Description
Describe the bug
Client does not pass schema to the initialization of the SyncPostgresClient object. This causes any call to the database to assume that the default public database is used instead of the provided schema.
To Reproduce
- Create a table in an alternate schema, where a table does not exist with the same name in the public schema.
- Create a client object using the create_client() function and provide it an alternative schema in the ClientOptions dict.
- Query the table or attempt an insert into the table
Expected behavior
Table is queried / inserted into properly.
supabase-py version 0.5.6
Available Workaround
It is possible to currently call the schema function on the postgrest object within the client object in order to properly set the schema.
ex: supabase.postgrest.schema('alternateSchema')
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomerspostgrestIssues related to postgrest-pyIssues related to postgrest-py
