schema method

SupabaseQuerySchema schema(
  1. String schema
)

Select a schema to query or perform an function (rpc) call.

The schema needs to be on the list of exposed schemas inside Supabase.

Implementation

SupabaseQuerySchema schema(String schema) {
  final newRest = rest.schema(schema);
  return SupabaseQuerySchema(
    counter: _incrementId,
    restUrl: _restUrl,
    headers: headers,
    schema: schema,
    isolate: _isolate,
    authHttpClient: _authHttpClient,
    realtime: realtime,
    rest: newRest,
  );
}