2025-02-21 20:40:42 +05:30
|
|
|
import 'package:immich_mobile/domain/interfaces/db.interface.dart';
|
2025-02-20 00:57:32 +05:30
|
|
|
import 'package:immich_mobile/domain/models/store.model.dart';
|
2025-02-20 00:35:24 +05:30
|
|
|
|
2025-02-21 20:40:42 +05:30
|
|
|
abstract interface class IStoreRepository implements IDatabaseRepository {
|
2025-02-20 00:35:24 +05:30
|
|
|
Future<bool> insert<T>(StoreKey<T> key, T value);
|
|
|
|
|
|
|
|
|
|
Future<T?> tryGet<T>(StoreKey<T> key);
|
|
|
|
|
|
2025-06-09 08:31:31 +05:30
|
|
|
Future<List<StoreDto<Object>>> getAll();
|
|
|
|
|
|
2025-02-20 00:35:24 +05:30
|
|
|
Stream<T?> watch<T>(StoreKey<T> key);
|
|
|
|
|
|
2025-06-09 08:31:31 +05:30
|
|
|
Stream<StoreDto<Object>> watchAll();
|
2025-02-20 00:35:24 +05:30
|
|
|
|
|
|
|
|
Future<bool> update<T>(StoreKey<T> key, T value);
|
|
|
|
|
|
|
|
|
|
Future<void> delete<T>(StoreKey<T> key);
|
|
|
|
|
|
|
|
|
|
Future<void> deleteAll();
|
|
|
|
|
}
|