doc: fix typos in documentation (#1810)

* Fix typos

* More typos
This commit is contained in:
Arie Litovsky
2021-08-05 09:31:18 -05:00
committed by GitHub
parent 6e48129b29
commit f0710aa004
2 changed files with 8 additions and 8 deletions

View File

@@ -172,7 +172,7 @@ id, err := client.User.
SetAge(30).
SetName("Ariel").
OnConflict().
UpadteNewValues().
UpdateNewValues().
ID(ctx)
// In PostgreSQL, the conflict target is required.
@@ -181,7 +181,7 @@ err := client.User.
SetAge(30).
SetName("Ariel").
OnConflictColumns(user.FieldName).
UpadteNewValues().
UpdateNewValues().
Exec(ctx)
// Bulk upsert is also supported.
@@ -191,8 +191,8 @@ client.User.
sql.ConflictWhere(...),
sql.UpdateWhere(...),
).
UpadteNewValues().
UpdateNewValues().
Exec(ctx)
// INSERT INTO "users" (...) VALUES ... ON CONFLICT WHERE ... DO UPDATE SET ... WHERE ...
```
```