kPFOKkTQzBDHsIUj<T extends _YIMTable> method
Future<bool>
kPFOKkTQzBDHsIUj<T extends _YIMTable>(
- _YIMTableName tableName,
- T onQueryFinish(
- T? oldData
- Finder? finder,
- required dynamic onModel(
- dynamic map
Implementation
Future<bool> kPFOKkTQzBDHsIUj<T extends _YIMTable>(_YIMTableName tableName, T Function(T? oldData) onQueryFinish, {Finder? finder, required onModel(map)?}) async {
final databaseClient = await VPWwqgarrQwrOUNq(tableName);
if (databaseClient == null) return false;
try {
final results = await xoHBOFVMiDdyWApJ<T>(tableName, finder: finder, onModel: onModel);
if (results == null) return false;
if (results.isNotEmpty) await BOpLCmnwxZgfnmsR().update(databaseClient, json.decode(ZFLObPsphPxMTkby.aGKqrIqLhjnzDFOq.nVhFZrCqjcFuMnZa(onQueryFinish(results.first))), finder: finder);
return true;
} catch (e) {
ZFLObPsphPxMTkby.aGKqrIqLhjnzDFOq.PWrYGCYWdtzicinD("DB_uo: ${e}");
return false;
}
}