Database constructor
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,
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,
);
}