mirror of
https://github.com/austinried/subtracks.git
synced 2026-02-10 15:02:42 +01:00
refresh lists on source change and sync
This commit is contained in:
@@ -5,6 +5,8 @@ import '../database.dart';
|
||||
|
||||
part 'library_dao.g.dart';
|
||||
|
||||
typedef AristListItem = ({models.Artist artist, int? albumCount});
|
||||
|
||||
@DriftAccessor(include: {'../tables.drift'})
|
||||
class LibraryDao extends DatabaseAccessor<SubtracksDatabase>
|
||||
with _$LibraryDaoMixin {
|
||||
@@ -25,7 +27,7 @@ class LibraryDao extends DatabaseAccessor<SubtracksDatabase>
|
||||
return query.get();
|
||||
}
|
||||
|
||||
Future<List<({models.Artist artist, int albumCount})>> listArtists({
|
||||
Future<List<AristListItem>> listArtists({
|
||||
required int limit,
|
||||
required int offset,
|
||||
}) async {
|
||||
|
||||
Reference in New Issue
Block a user