Skip to content

Commit 9f855e4

Browse files
move Swift pool logic
1 parent 5434a5f commit 9f855e4

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed
File renamed without changes.
File renamed without changes.

PowerSyncKotlin/src/appleMain/kotlin/com/powersync/pool/SwiftSQLiteConnectionPool.kt renamed to internal/PowerSyncKotlin/src/appleMain/kotlin/com/powersync/pool/SwiftSQLiteConnectionPool.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ public class SwiftSQLiteConnectionPool(
3232

3333
override suspend fun <T> read(callback: suspend (SQLiteConnectionLease) -> T): T {
3434
var result: T? = null
35+
/**
36+
* The leaseRead and leaseWrite callbacks don't return values
37+
* since the SKIEE generated version maps to returning Any? Which Swift
38+
* will warn when overriding the method since it's throwable and nil typically
39+
* represents an error in Objective C.
40+
*/
3541
adapter.leaseRead {
3642
runWrapped {
3743
/**
File renamed without changes.

0 commit comments

Comments
 (0)