Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions supabase/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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

Expand Down