drizzle-orm
drizzle-orm copied to clipboard
[BUG]: better-sqlite3 CTEs should support `INSERT`, `UPDATE`, `DELETE`
What version of drizzle-orm are you using?
0.23.2
Describe the Bug
SQLite supports common table expressions for INSERT, UPDATE, and DELETE.
Drizzle's better-sqlite3 driver's db.with(...) only has a select property, and so appears to not support CTEs on other query types.
Didn't know that! Thanks, will put it on the roadamp.
👍 Adding that Postgres also supports WITH with SELECT, INSERT, UPDATE, or DELETE queries.