mass deletion of items

This commit is contained in:
marcoabat
2023-08-06 22:33:11 +02:00
parent 37704abfa1
commit af8b08c120
2 changed files with 16 additions and 6 deletions

View File

@@ -144,6 +144,10 @@ class DbHelper {
await _client.from(itemsTableName).delete().eq('id', id);
}
static Future<void> deleteItemsById(List<int> ids) async {
await _client.from(itemsTableName).delete().in_('id', ids);
}
static Stream<AuthState> get authChangeEventStream =>
_client.auth.onAuthStateChange;
}