You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the section about PostgreSQL and SQLite of https://orm.drizzle.team/docs/guides/upsert, one example passes the setWhere property to onConflictDoUpdate(). However, the guide doesn't mention the targetWhere property, nor describe when it is useful. It would also be good to describe the difference between the two properties to explain when to use which one of them.
Suggested improvements:
Add an example showing how to use targetWhere, and describing how it works. E.g. show the generated SQL statement.
Describe the difference between setWhere and targetWhere, and when to use which one of them.
This might be useful to describe how the upsert operation works in SQLite, and the difference between setWhere and targetWhere: https://www.sqlite.org/lang_upsert.html
The text was updated successfully, but these errors were encountered:
In the section about PostgreSQL and SQLite of https://orm.drizzle.team/docs/guides/upsert, one example passes the
setWhere
property toonConflictDoUpdate()
. However, the guide doesn't mention thetargetWhere
property, nor describe when it is useful. It would also be good to describe the difference between the two properties to explain when to use which one of them.Suggested improvements:
targetWhere
, and describing how it works. E.g. show the generated SQL statement.setWhere
andtargetWhere
, and when to use which one of them.This might be useful to describe how the upsert operation works in SQLite, and the difference between
setWhere
andtargetWhere
: https://www.sqlite.org/lang_upsert.htmlThe text was updated successfully, but these errors were encountered: