Open aqrln opened 2 weeks ago
Thanks for reaching out @aqrln . I will make it my next priority to switch to the new transactionContext once I finish up with some of the type conversions on the adapter which is WIP. Once it's stable I will definitely reach out about adding the adapter to the ecosystem tests.
Hey, Prisma team here. We wanted to give you a heads up that we are changing the driver adapter interface a little bit to be able to support setting transaction isolation levels in all databases. Now, instead of having the
startTransaction
method directly on the driver adapter instance, there’s atransactionContext
method (that can do stuff like fetching a connection from the pool) which returns aTransactionContext
instance, which, in turn, now has thestartTransaction
method.See this PR for more details: https://github.com/prisma/prisma/pull/24878
This change was shipped in Prisma 5.20.0 yesterday, but to avoid breaking third-party adapters we also added a compatibility shim that is automatically applied if we detect that an adapter implements the old interface (https://github.com/prisma/prisma/pull/25270). We’d like to get rid of it soon (ideally next release), so we’d appreciate if you could update
prisma-adapter-aurora
to use the new API. Thanks!Also, feel free to reach out if you have any questions or want to discuss anything. We could also add your adapter to https://github.com/prisma/ecosystem-tests/tree/dev/driver-adapters once it's stable.