drizzle-orm icon indicating copy to clipboard operation
drizzle-orm copied to clipboard

[FEATURE]: `from` clause on PgUpdateBuilder

Open DanielBaulig opened this issue 1 year ago • 1 comments

Describe what you want

There doesn't seem to be a way to from / join to other tables when using the PgUpdateBuilder builder. Maybe I am missing something?

https://www.postgresql.org/docs/current/sql-update.html

DanielBaulig avatar May 12 '24 22:05 DanielBaulig

Same for deleting rows.

MorelSerge avatar May 18 '24 11:05 MorelSerge

This is actually quite a large missing feature IMO. Isn't this a default functionality in multiple SQL dialects?

I'm having a use case where I require updating tens of thousands of records at once, based on a joined table. This is currently not possible with Drizzle, apart from raw querying.

MorelSerge avatar Jun 20 '24 13:06 MorelSerge

I agree. This feature should be important enough to be added to the public roadmap. It's not limited to niche use cases. Anyone heard anything from the maintainers about their approval of this enhancement?

eric-crowell avatar Jul 26 '24 22:07 eric-crowell