Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Transaction Type - Drizzle Team
DT
Drizzle Team
•
17mo ago
•
22 replies
Jakesdoc
Transaction Type
Is there a type to use for passing a transaction into a function
? I would like to do something like
await
db.
transaction
(
async
(
tx
)
=>
insertUser
(tx, form.data))
await
db.
transaction
(
async
(
tx
)
=>
insertUser
(tx, form.data))
but the type of
tx
tx
is super long and not convenient at all
.
Drizzle Team
Join
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
How to type the Postgres transaction object?
DT
Drizzle Team / help
3y ago
What is the type of transaction prop?
DT
Drizzle Team / help
3y ago
How to type connection as conn or transaction?
DT
Drizzle Team / help
2y ago
Type Error when Generating Typebox
DT
Drizzle Team / help
10mo ago