lc_supabase 0.2.1
SDKflutter
Platformandroidioswindowslinuxmacos
custom wrap for supabase
lc_supabase
A Flutter package for Supabase.
usage
import 'package:lc_supabase/lc_supabase.dart';
void main() async {
await SupabaseUtil.init(
DBClientConfig(
// serverUrl: '',
// clientKey: '',
// applicationId: '',
// email: '',
// password: '',
),
);
/// CRUD
await SupabaseUtil.create('table', {});
// update
await SupabaseUtil.update('table', {});
// delete
await SupabaseUtil.delete('table', 'id');
// query
await SupabaseUtil.query(
table: 'table',
pageSize: 20,
pageIndex: 0,
progressCallback: (index, total) {
print('progress: $index/$total');
},
includeDeleted: true,
);
// subscribe
SupabaseUtil.subscribe(
table: 'table',
primaryKey: [DBBasicKey.kId],
includeDeleted: true,
);
/// origin instance
await SupabaseUtil.instance.client.from('table').select();
}