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
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