Skip to content

Commit 16c0189

Browse files
committed
JVM fixes
1 parent cba23c4 commit 16c0189

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

core/src/jvmMain/kotlin/com/powersync/DatabaseDriverFactory.jvm.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package com.powersync
22

33
import androidx.sqlite.SQLiteConnection
44
import androidx.sqlite.driver.bundled.BundledSQLiteDriver
5+
import com.powersync.db.runWrapped
56

67
@Suppress("EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING", "SqlNoDataSourceInspection")
78
public actual class DatabaseDriverFactory {
@@ -21,5 +22,7 @@ public fun BundledSQLiteDriver.addPowerSyncExtension() {
2122

2223
private val powersyncExtension: String by lazy { extractLib("powersync") }
2324

25+
2426
@ExperimentalPowerSyncAPI
25-
public actual fun resolvePowerSyncLoadableExtensionPath(): String? = powersyncExtension
27+
@Throws(PowerSyncException::class)
28+
public actual fun resolvePowerSyncLoadableExtensionPath(): String? = runWrapped { powersyncExtension }

0 commit comments

Comments
 (0)