setDelta method
Implementation
@override
Future<bool> setDelta({
required String directive,
required String mid,
required Map<String, dynamic>? delta,
}) async {
await initialize();
Map<String, dynamic> input = makeData(directive: directive, mid: mid, delta: delta);
logger.finest('setDelta = ${input.toString()}');
try {
SupabaseQueryBuilder fromRef = Supabase.instance.client.from('hycop_delta');
await fromRef.upsert(input, onConflict: 'mid');
//PostgrestList result = await fromRef.upsert(input, onConflict: 'mid').select();
//PostgrestList result = await fromRef.insert(input).select();
//logger.finest("hycop_delta sample data created : $result");
logger.finest("hycop_delta sample data created");
return true;
} catch (e) {
logger.severe("hycop_delta SET DB ERROR : $e");
return false;
}
}