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
francis11mo ago
it's not documented iirc but there is a .for(strength: LockStrength) query builder method
francis
francis11mo 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
francis11mo ago
not sure why this isn't in the select docs
tzezar
tzezarOP11mo ago
thanks
Want results from more Discord servers?
Add your server