- Update Kotlin SDK to 1.7.0.
- 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.
// Close the database and delete all SQLite files
try await database.close(deleteDatabase: true)
// Close the database without deleting files (default behavior)
try await database.close(deleteDatabase: false)
// or simply
try await database.close()
- Add
PowerSyncDataTypeConvertible protocol for casting query parameters to SQLite supported types.
- [Internal] Removed unnecessary
Task creation in Attachment helper FileManagerStorageAdapter.