mirror of
https://github.com/immich-app/immich.git
synced 2025-06-23 15:30:51 -04:00
21 lines
554 B
Dart
21 lines
554 B
Dart
import 'package:immich_mobile/domain/interfaces/db.interface.dart';
|
|
import 'package:immich_mobile/domain/models/store.model.dart';
|
|
|
|
abstract interface class IStoreRepository implements IDatabaseRepository {
|
|
Future<bool> insert<T>(StoreKey<T> key, T value);
|
|
|
|
Future<T?> tryGet<T>(StoreKey<T> key);
|
|
|
|
Future<List<StoreDto<Object>>> getAll();
|
|
|
|
Stream<T?> watch<T>(StoreKey<T> key);
|
|
|
|
Stream<StoreDto<Object>> watchAll();
|
|
|
|
Future<bool> update<T>(StoreKey<T> key, T value);
|
|
|
|
Future<void> delete<T>(StoreKey<T> key);
|
|
|
|
Future<void> deleteAll();
|
|
}
|