From a2bfb9eb3b0641873c886384ed96fd44f70dba0e Mon Sep 17 00:00:00 2001 From: Dylan Nunns Date: Thu, 2 Dec 2021 19:05:01 -0400 Subject: [PATCH] Closing bracket position Updated position of closing bracket where `onConflictOf` parameter. In this particular area it was closing `upsert()` and making `onConflictOf` a parameter of `.run()` --- Documentation/Index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/Index.md b/Documentation/Index.md index 96e5775c..061b448b 100644 --- a/Documentation/Index.md +++ b/Documentation/Index.md @@ -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 <- "alice@mac.com", name <- "Alice"), onConflictOf: email) +try db.run(users.upsert(email <- "alice@mac.com", name <- "Alice", onConflictOf: email)) // INSERT INTO "users" ("email", "name") VALUES ('alice@mac.com', 'Alice') ON CONFLICT (\"email\") DO UPDATE SET \"name\" = \"excluded\".\"name\" ```