drizzle-team/drizzle-orm

[BUG]: Type Error in SQLiteTransaction - Missing $client Property After Upgrading to drizzle-orm@0.35.1 or 0.35.2

Opened this issue · 2 comments

What version of drizzle-orm are you using?

0.35.2

What version of drizzle-kit are you using?

0.26.2

Describe the Bug

This typescript error appears after upgrading to either 0.35.1 or 0.35.2, which is due to the newly added $client property to the db type and while this property is not present in the transaction type.

This appears to be the same error as #3140 (but for PostgreSQL) which was fixed in the 0.35.2 release and the still open issue #3163 (but for MySQL)

Expected behavior

Any transaction PostgreSQL, MySQL or SQLite should be passable to its equivalent drizzle db type.

Environment & setup

Attempt to pass a transaction to a function that expects a typeof db

We'll address this soon for all dialect transactions.

0.36.3 and still have the error.

Any temporary fix that we can do ?