File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed
internal/PowerSyncKotlin/src/appleMain/kotlin/com/powersync/pool Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -7,6 +7,13 @@ import io.ktor.utils.io.CancellationException
77import kotlinx.cinterop.CPointer
88import 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.
You can’t perform that action at this time.
0 commit comments