Skip to content

Commit f9a2218

Browse files
cleanup
1 parent 15729e2 commit f9a2218

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

core/src/commonMain/kotlin/com/powersync/db/PowerSyncDatabaseImpl.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ internal class PowerSyncDatabaseImpl(
301301
}
302302
}
303303

304+
// The initialization sets powerSyncVersion. We currently run the init as a blocking operation
304305
override suspend fun getPowerSyncVersion(): String = powerSyncVersion!!
305306

306307
override suspend fun <RowType : Any> get(

core/src/commonMain/kotlin/com/powersync/db/internal/ConnectionContext.kt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,29 @@ package com.powersync.db.internal
22

33
import com.powersync.PowerSyncException
44
import com.powersync.db.SqlCursor
5-
import kotlin.coroutines.cancellation.CancellationException
65

76
public interface ConnectionContext {
8-
@Throws(PowerSyncException::class, CancellationException::class)
7+
@Throws(PowerSyncException::class)
98
public fun execute(
109
sql: String,
1110
parameters: List<Any?>? = listOf(),
1211
): Long
1312

14-
@Throws(PowerSyncException::class, CancellationException::class)
13+
@Throws(PowerSyncException::class)
1514
public fun <RowType : Any> getOptional(
1615
sql: String,
1716
parameters: List<Any?>? = listOf(),
1817
mapper: (SqlCursor) -> RowType,
1918
): RowType?
2019

21-
@Throws(PowerSyncException::class, CancellationException::class)
20+
@Throws(PowerSyncException::class)
2221
public fun <RowType : Any> getAll(
2322
sql: String,
2423
parameters: List<Any?>? = listOf(),
2524
mapper: (SqlCursor) -> RowType,
2625
): List<RowType>
2726

28-
@Throws(PowerSyncException::class, CancellationException::class)
27+
@Throws(PowerSyncException::class)
2928
public fun <RowType : Any> get(
3029
sql: String,
3130
parameters: List<Any?>? = listOf(),

0 commit comments

Comments
 (0)