Skip to content

Commit 8588a97

Browse files
chore: update swift transaction example (#105)
1 parent 7f95116 commit 8588a97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client-sdk-references/swift.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ sidebarTitle: "Overview"
66
<CardGroup cols={3}>
77
<Card title="Source Code" icon="github" href="https://github.com/powersync-ja/powersync-swift/">
88
Refer to the powersync-swift repo on GitHub.
9-
</Card>
9+
</Card>
1010
<Card title="API Reference (Coming soon)" icon="book" href="">
1111
A full API Reference for this SDK is not yet available. This is planned for the V1 release.
1212
</Card>
@@ -326,7 +326,7 @@ func updateTodo(_ todo: Todo) async throws {
326326

327327
func deleteTodo(id: String) async throws {
328328
try await db.writeTransaction(callback: { transaction in
329-
_ = try await transaction.execute(
329+
_ = transaction.execute(
330330
sql: "DELETE FROM \(TODOS_TABLE) WHERE id = ?",
331331
parameters: [id]
332332
)

0 commit comments

Comments
 (0)