xoHBOFVMiDdyWApJ<T extends _YIMTable> method
Future<List<T> ?>
xoHBOFVMiDdyWApJ<T extends _YIMTable>(
- _YIMTableName tableName, {
- Finder? finder,
- required dynamic onModel(
- 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;
}
}