Skip to content

Commit 85a5fba

Browse files
cleanup
1 parent 819f919 commit 85a5fba

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

Package.resolved

Lines changed: 0 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Sources/PowerSync/Kotlin/KotlinPowerSyncDatabaseImpl.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,15 +379,18 @@ final class KotlinPowerSyncDatabaseImpl: PowerSyncDatabaseProtocol {
379379

380380
do {
381381
let pagesData = try encoder.encode(rootPages)
382+
382383
guard let pagesString = String(data: pagesData, encoding: .utf8) else {
383384
throw PowerSyncError.operationFailed(
384385
message: "Failed to convert pages data to UTF-8 string"
385386
)
386387
}
388+
387389
let tableRows = try await getAll(
388390
sql: "SELECT tbl_name FROM sqlite_master WHERE rootpage IN (SELECT json_each.value FROM json_each(?))",
389391
parameters: [
390392
pagesString
393+
]
391394
) { try $0.getString(index: 0) }
392395

393396
return Set(tableRows)

0 commit comments

Comments
 (0)