wrap isar.clear() in isar.writeTxn() to avoid error (#1669)
This commit is contained in:
commit
4bac11e81a
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ class EmbeddingsDB {
|
|||
}
|
||||
|
||||
Future<void> clearTable() async {
|
||||
await _isar.clear();
|
||||
await _isar.writeTxn(() => _isar.clear());
|
||||
}
|
||||
|
||||
Future<List<Embedding>> getAll(Model model) async {
|
||||
|
|
Loading…
Add table
Reference in a new issue