Closed jakeleventhal closed 2 weeks ago
drizzle-orm
0.35.3
drizzle-kit
0.26.2
I have functions that take in an optional parameter for a transaction object. For example:
const updateEmail = async (email: string, tx = db) => {...}
This code allows me to optionally perform this in a transaction. When upgrading to 0.35, this code no longer works because $client is not available on the tx object.
$client
tx
$client is available on transaction object
No response
Closing in favor of https://github.com/drizzle-team/drizzle-orm/issues/3175.
What version of
drizzle-orm
are you using?0.35.3
What version of
drizzle-kit
are you using?0.26.2
Describe the Bug
I have functions that take in an optional parameter for a transaction object. For example:
This code allows me to optionally perform this in a transaction. When upgrading to 0.35, this code no longer works because
$client
is not available on thetx
object.Expected behavior
$client
is available on transaction objectEnvironment & setup
No response