Skip to content

Commit

Permalink
Closing bracket position
Browse files Browse the repository at this point in the history
Updated position of closing bracket where `onConflictOf` parameter. In this particular area it was closing `upsert()` and making `onConflictOf` a parameter of `.run()`
  • Loading branch information
gnarledrootsystems authored Dec 2, 2021
1 parent 60a6501 commit a2bfb9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Documentation/Index.md
Original file line number Diff line number Diff line change
Expand Up @@ -1174,7 +1174,7 @@ joined by the `<-` operator. Upserting is like inserting, except if there is a
conflict on the specified column value, SQLite will perform an update on the row instead.

```swift
try db.run(users.upsert(email <- "[email protected]", name <- "Alice"), onConflictOf: email)
try db.run(users.upsert(email <- "[email protected]", name <- "Alice", onConflictOf: email))
// INSERT INTO "users" ("email", "name") VALUES ('[email protected]', 'Alice') ON CONFLICT (\"email\") DO UPDATE SET \"name\" = \"excluded\".\"name\"
```

Expand Down

0 comments on commit a2bfb9e

Please sign in to comment.