DT
Drizzle Team14mo ago
GT

"VALUES(Column)" abstraction ( quick )

So, using MySql, I can use [insert query here].onDuplicateKeyUpdate({ set: { name: sql'VALUES(name)'}}). I was wondering though, if there's any abstraction for the VALUES function. On the site: https://orm.drizzle.team/docs/insert#on-duplicate-key-update, it only shows example to set an fixed value or the one that was already set - emulating "do nothing behaviour" - is there any abstraction for that SQL function?
SQL Insert - DrizzleORM
Drizzle ORM | %s
1 Reply
GT
GTOP14mo ago
Ping on response, pls S2
Want results from more Discord servers?
Add your server