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 4
4
5
5
- Add ` PowerSyncDatabase.inMemory ` to create an in-memory SQLite database with PowerSync.
6
6
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.
8
9
- Experimental support for sync streams.
10
+ - [ Swift] Added helpers for creating Swift SQLite connection pools.
9
11
10
12
## 1.6.1
11
13
Original file line number Diff line number Diff line change @@ -7,6 +7,13 @@ import io.ktor.utils.io.CancellationException
7
7
import kotlinx.cinterop.CPointer
8
8
import kotlinx.cinterop.ExperimentalForeignApi
9
9
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
+
10
17
/* *
11
18
* A small functional interface to provide a callback with a leased connection.
12
19
* We use this structure in order to annotate the callback with exceptions that can be thrown.
@@ -28,13 +35,6 @@ public fun interface AllLeaseCallback {
28
35
)
29
36
}
30
37
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
-
38
38
/* *
39
39
* We only allow synchronous callbacks on the Swift side for leased READ/WRITE connections.
40
40
* This adapter here uses synchronous callbacks.
You can’t perform that action at this time.
0 commit comments