This PR addresses the limitation where the dbfixture.New function only accepts a pointer to bun.DB. Both bun.DB and bun.TX implement the IDB interface. By allowing dbfixture.New to accept the IDB interface, we provide more flexibility, especially during testing.
This PR addresses the limitation where the dbfixture.New function only accepts a pointer to
bun.DB
. Bothbun.DB
andbun.TX
implement theIDB
interface. By allowingdbfixture.New
to accept theIDB
interface, we provide more flexibility, especially during testing.close https://github.com/uptrace/bun/issues/899