wTKfOYvWiwWTVwfT<T extends _YIMTable> method
Future<List<T> ?>
wTKfOYvWiwWTVwfT<T extends _YIMTable>(
- _YIMTableName tableName, {
- Finder? finder,
- required dynamic onModel(
- dynamic map
Implementation
Future<List<T>?> wTKfOYvWiwWTVwfT<T extends _YIMTable>(_YIMTableName tableName, {Finder? finder, required onModel(map)?}) async {
final databaseClient = await KZERXPNLlxTYExfa(tableName);
if (databaseClient == null) return null;
try {
final List<dynamic> results = await SBuOIEHFFZdbPiuX().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) {
lZUCgdYJMjUzohKy.SUEyOycoSdUsFZjL.WfikzNubkXVQknYm("DB_q: ${e}");
return null;
}
}