diff --git a/supabase/client.py b/supabase/client.py index 0a779146..007b6d1e 100644 --- a/supabase/client.py +++ b/supabase/client.py @@ -58,6 +58,7 @@ def __init__( rest_url=self.rest_url, supabase_key=self.supabase_key, headers=options.headers, + schema=options.schema, ) def storage(self) -> SupabaseStorageClient: @@ -151,12 +152,10 @@ def _init_supabase_auth_client( @staticmethod def _init_postgrest_client( - rest_url: str, - supabase_key: str, - headers: Dict[str, str], + rest_url: str, supabase_key: str, headers: Dict[str, str], schema: str ) -> SyncPostgrestClient: """Private helper for creating an instance of the Postgrest client.""" - client = SyncPostgrestClient(rest_url, headers=headers) + client = SyncPostgrestClient(rest_url, headers=headers, schema=schema) client.auth(token=supabase_key) return client