Database class

database db

Constructors

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

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
supabase_client SupabaseClient
getter/setter pair

Methods

add({required String from, required Map data, SupabaseClient? supabaseClient}) Future<bool>
add database data
client({required SupabaseClient? supabaseClient}) SupabaseClient
delete({required String from, required Map datas, SupabaseClient? supabaseClient}) → dynamic
delete data
get({required String from, required String dataId, required String searchData, List<String>? columns, SupabaseClient? supabaseClient}) Future<Map?>
get data
getAll({required String from, List<String>? columns, SupabaseClient? supabaseClient}) Future<List<Map>>
get all datas
getMatch({required String from, required Map query, List<String>? columns, SupabaseClient? supabaseClient}) Future<Map?>
get data
insert({required String from, required Map data, SupabaseClient? supabaseClient}) Future<bool>
insert data
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
on(String from, void callback(dynamic data)) → void
on data
parseColumns(List<String>? columns) String
searchData({required String from, required String column, required String query, List<String>? columns, SupabaseClient? supabaseClient}) Future<Map?>
get data
toString() String
A string representation of this object.
inherited
update({required String from, required Map dataOrigin, required Map dataUpdate, SupabaseClient? supabaseClient}) → dynamic
update data

Operators

operator ==(Object other) bool
The equality operator.
inherited