How should locks be done with drizzle?

Table or row locks in postgres. How can select for update be done in drizzle?
4 Replies
francis
francis8mo ago
it's not documented iirc but there is a .for(strength: LockStrength) query builder method
francis
francis8mo ago
GitHub
drizzle-orm/drizzle-orm/src/pg-core/query-builders/select.ts at mai...
Headless TypeScript ORM with a head. Runs on Node, Bun and Deno. Lives on the Edge and yes, it's a JavaScript ORM too 😅 - drizzle-team/drizzle-orm
francis
francis8mo ago
not sure why this isn't in the select docs
tzezar
tzezar8mo ago
thanks
Want results from more Discord servers?
Add your server