kPFOKkTQzBDHsIUj<T extends _YIMTable> method

Future<bool> kPFOKkTQzBDHsIUj<T extends _YIMTable>(
  1. _YIMTableName tableName,
  2. T onQueryFinish(
    1. T? oldData
    ), {
  3. Finder? finder,
  4. required dynamic onModel(
    1. 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;
  }
}