Custom Logic in Upsert/Insert on conflict
Hey everyone!
I'm looking for ideas on how the following could be implemented using drizzle:
I need to check whether the inserted data differs to the existing data by comparing them using
IS DISTINCT FROM
.
Appreciate any suggestion with how that could be done using insert().values().onConflictDoUpdate()
that drizzle provides. Thanks!1 Reply
Hello 👋
Not 100% sure but:
you can pass you own SQL with
sql