Closed pashagolub closed 10 months ago
Aren't these interface renamings backwards-incompatible?
People should define their own interfaces in a real life. Even if they don't, the main interfaces are still the same: PgxConnIface
and PgxPoolIface
This is probably the wrong place to discuss it, but I have never really understood why we are expected to define our own interfaces.
Because pgxmock
is for tests only. I don't think, you want to have a testing module dependency in your production code. You are free to use it, of course.
And because the only interface in pgx
is pgx.Tx
Thanks, I think that makes sense!
pgxMockIface
toExpecter
pgxIface
toPgxCommonIface
Config()
methods to proper interfacesexpectation
hidden