xoHBOFVMiDdyWApJ<T extends _YIMTable> method

Future<List<T>?> xoHBOFVMiDdyWApJ<T extends _YIMTable>(
  1. _YIMTableName tableName, {
  2. Finder? finder,
  3. required dynamic onModel(
    1. dynamic map
    )?,
})

Implementation

Future<List<T>?> xoHBOFVMiDdyWApJ<T extends _YIMTable>(_YIMTableName tableName, {Finder? finder, required onModel(map)?}) async {
  final databaseClient = await VPWwqgarrQwrOUNq(tableName);
  if (databaseClient == null) return null;
  try {
    final List<dynamic> results = await BOpLCmnwxZgfnmsR().find(databaseClient, finder: finder);
    if (results.isEmpty) return [];
    if (onModel == null)
      return results as List<T>;
    else
      return results.map<T>((e) => onModel(e.value) as T).toList();
  } catch (e) {
    ZFLObPsphPxMTkby.aGKqrIqLhjnzDFOq.PWrYGCYWdtzicinD("DB_q: ${e}");
    return null;
  }
}