You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,17 @@
3
3
## 1.6.1 (unreleased)
4
4
5
5
* Update Kotlin SDK to 1.7.0.
6
+
* Add `close(deleteDatabase:)` method to `PowerSyncDatabaseProtocol` for deleting SQLite database files when closing the database. This includes the main database file and all WAL mode files (.wal, .shm, .journal). Files that don't exist are ignored, but an error is thrown if a file exists but cannot be deleted.
6
7
8
+
```swift
9
+
// Close the database and delete all SQLite files
10
+
tryawait database.close(deleteDatabase: true)
11
+
12
+
// Close the database without deleting files (default behavior)
13
+
tryawait database.close(deleteDatabase: false)
14
+
// or simply
15
+
tryawait database.close()
16
+
```
7
17
## 1.6.0
8
18
9
19
* Update core extension to 0.4.6 ([changelog](https://github.com/powersync-ja/powersync-sqlite-core/releases/tag/v0.4.6))
0 commit comments