Skip to content

Commit c00168b

Browse files
committed
Fix example
1 parent 4328d40 commit c00168b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Demo/PowerSyncExample.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

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

Demo/PowerSyncExample/PowerSync/FtsSetup.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,11 @@ func configureFts(db: PowerSyncDatabaseProtocol, schema: Schema) async throws {
159159
// --- Execute all generated SQL statements ---
160160

161161
if !allSqlStatements.isEmpty {
162+
let resultingStatements: [String] = allSqlStatements
162163
do {
163164
print("[FTS] Executing \(allSqlStatements.count) SQL statements in a transaction...")
164165
_ = try await db.writeTransaction { transaction in
165-
for sql in allSqlStatements {
166+
for sql in resultingStatements {
166167
print("[FTS] Executing SQL:\n\(sql)")
167168
_ = try transaction.execute(sql: sql, parameters: [])
168169
}

0 commit comments

Comments
 (0)