Report hasn't been filed before.
What version of drizzle-orm are you using?
1.0.0.rc1
What version of drizzle-kit are you using?
1.0.0.rc1
Other packages
No response
Describe the Bug
PgAsyncDatabase.transaction is defined as an instance field rather than an instance method.
Current code
transaction: <T>(
transaction: (tx: PgAsyncTransaction<TQueryResult, TRelations>) => Promise<T>,
config?: PgTransactionConfig,
) => Promise<T> = (tx, cfg) => this.session.transaction(tx, cfg);
Expected code
transaction: <T>(
transaction: (tx: PgAsyncTransaction<TQueryResult, TRelations>) => Promise<T>,
config?: PgTransactionConfig,
): Promise<T> {
return this.session.transaction(transaction, config);
}
NodePgTransaction and PgEffectDatabase appears to have a similar issue.
In my project, I had been accessing the PgAsyncDatabase (To be precise, NodePgDatabase) prototype to make minor changes to its behavior and perform analysis, but this issue has made that impossible.
I realize this is not the recommended way to use it, but I would be very grateful if you could fix it.
Report hasn't been filed before.
What version of
drizzle-ormare you using?1.0.0.rc1
What version of
drizzle-kitare you using?1.0.0.rc1
Other packages
No response
Describe the Bug
PgAsyncDatabase.transactionis defined as an instance field rather than an instance method.Current code
Expected code
NodePgTransactionandPgEffectDatabaseappears to have a similar issue.In my project, I had been accessing the PgAsyncDatabase (To be precise, NodePgDatabase) prototype to make minor changes to its behavior and perform analysis, but this issue has made that impossible.
I realize this is not the recommended way to use it, but I would be very grateful if you could fix it.