UPSERT operation not working for SQLite/Turso
Hey! So I'm trying to do a BULK UPSERT for multiple rows with a
.returning() and its not working. I expect:- UPDATE: rows which include the PKs
"id" - INSERT: rows which DO NOT include the PKs
"id"
the code is as follows (I've followed the docs and tried some variants):
I would expect results being:
and I keep getting (the first row is unchanged / not updated):
Am I doing something wrong? Thanks! Any help is greatly appreciated!