Database constructor

Database({
  1. required String supabaseUrl,
  2. required String supabaseKey,
  3. PostgrestClientOptions postgrestOptions = const PostgrestClientOptions(),
  4. AuthClientOptions authOptions = const AuthClientOptions(),
  5. StorageClientOptions storageOptions = const StorageClientOptions(),
  6. RealtimeClientOptions realtimeClientOptions = const RealtimeClientOptions(),
  7. Map<String, String>? headers,
  8. Client? httpClient,
  9. YAJsonIsolate? isolate,
})

database db

Implementation

Database({
  required String supabaseUrl,
  required String supabaseKey,

PostgrestClientOptions postgrestOptions = const PostgrestClientOptions(),
AuthClientOptions authOptions = const AuthClientOptions(),
StorageClientOptions storageOptions = const StorageClientOptions(),
RealtimeClientOptions realtimeClientOptions = const RealtimeClientOptions(),
Map<String, String>? headers,
Client? httpClient,
YAJsonIsolate? isolate,
}) {
  supabase_client = SupabaseClient(
    supabaseUrl,
    supabaseKey,
    postgrestOptions: postgrestOptions,
    authOptions: authOptions,
    storageOptions: storageOptions,
    realtimeClientOptions: realtimeClientOptions,
    headers: headers,
    httpClient: httpClient,
    isolate: isolate,
  );
}