File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed
core/src/iosMain/kotlin/com/powersync Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## 1.0.0-BETA13
4+
5+ * Move iOS database driver to use IO dispatcher which should avoid race conditions and improve performance.
6+
37## 1.0.0-BETA12
48
5- * Use transaction context in ` writeTransaction ` in ` BucketStorageImpl ` to avoid race condition issues in Swift SDK .
9+ * Use transaction context in ` writeTransaction ` in ` BucketStorageImpl ` .
610
711## 1.0.0-BETA11
812
Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ import kotlinx.cinterop.asStableRef
1717import kotlinx.cinterop.staticCFunction
1818import kotlinx.cinterop.toKString
1919import kotlinx.coroutines.CoroutineScope
20+ import kotlinx.coroutines.Dispatchers
21+ import kotlinx.coroutines.IO
2022
2123@Suppress(" EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING" )
2224@OptIn(ExperimentalForeignApi ::class )
@@ -51,10 +53,13 @@ public actual class DatabaseDriverFactory {
5153 scope : CoroutineScope ,
5254 dbFilename : String ,
5355 ): PsSqlDriver {
56+ val dbDispatcher = Dispatchers .IO
57+ val dbScope = CoroutineScope (scope.coroutineContext + dbDispatcher)
58+
5459 val schema = InternalSchema .synchronous()
5560 this .driver =
5661 PsSqlDriver (
57- scope = scope ,
62+ scope = dbScope ,
5863 driver =
5964 NativeSqliteDriver (
6065 configuration =
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ development=true
1717RELEASE_SIGNING_ENABLED =true
1818# Library config
1919GROUP =com.powersync
20- LIBRARY_VERSION =1.0.0-BETA12
20+ LIBRARY_VERSION =1.0.0-BETA13
2121GITHUB_REPO =https://github.com/powersync-ja/powersync-kotlin.git
2222# POM
2323POM_URL =https://github.com/powersync-ja/powersync-kotlin/
You can’t perform that action at this time.
0 commit comments