|
@@ -29,12 +29,6 @@ class SQLiteRepository<T> implements Repository<T> {
|
|
}
|
|
}
|
|
|
|
|
|
@override
|
|
@override
|
|
- Future<List<T>> consultarPorCondicion(bool Function(T) condicion) async {
|
|
|
|
- final maps = await database.query(tableName);
|
|
|
|
- return maps.map((map) => fromMap(map)).where(condicion).toList();
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- @override
|
|
|
|
Future<void> guardar(T entidad) async {
|
|
Future<void> guardar(T entidad) async {
|
|
final map = toMap(entidad);
|
|
final map = toMap(entidad);
|
|
await database.insert(tableName, map,
|
|
await database.insert(tableName, map,
|