wrap isar.clear() in isar.writeTxn() to avoid error
This commit is contained in:
parent
c981a311cf
commit
8259587d45
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