Skip to content

Commit 11add5c

Browse files
Add changelog entry
1 parent 9f855e4 commit 11add5c

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44

55
- Add `PowerSyncDatabase.inMemory` to create an in-memory SQLite database with PowerSync.
66
This may be useful for testing.
7-
- The Supabase connector can now be subclassed to customize how rows are uploaded and how errors are handled.
7+
- The Supabase connector can now be subclassed to customize how rows are uploaded and how errors are
8+
handled.
89
- Experimental support for sync streams.
10+
- [Swift] Added helpers for creating Swift SQLite connection pools.
911

1012
## 1.6.1
1113

internal/PowerSyncKotlin/src/appleMain/kotlin/com/powersync/pool/SwiftPoolAdapter.kt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ import io.ktor.utils.io.CancellationException
77
import kotlinx.cinterop.CPointer
88
import kotlinx.cinterop.ExperimentalForeignApi
99

10+
/**
11+
* The Swift lease will provide a SQLite connection pointer (sqlite3*) which is used in a [Database]
12+
*/
13+
public interface SwiftLeaseAdapter {
14+
public val pointer: CPointer<sqlite3>
15+
}
16+
1017
/**
1118
* A small functional interface to provide a callback with a leased connection.
1219
* We use this structure in order to annotate the callback with exceptions that can be thrown.
@@ -28,13 +35,6 @@ public fun interface AllLeaseCallback {
2835
)
2936
}
3037

31-
/**
32-
* The Swift lease will provide a SQLite connection pointer (sqlite3*) which is used in a [Database]
33-
*/
34-
public interface SwiftLeaseAdapter {
35-
public val pointer: CPointer<sqlite3>
36-
}
37-
3838
/**
3939
* We only allow synchronous callbacks on the Swift side for leased READ/WRITE connections.
4040
* This adapter here uses synchronous callbacks.

0 commit comments

Comments
 (0)