This package is Proof of Concept that if we use https://github.com/go-pg/pg
for our DB connection, it still can be tested. Since go-pg package already use abstraction for their DB query
(using orm.DB
interface), we can create new struct that implement it.
At the same time, instead doing real query we can compare what queries we want to mock and what results will be.
See in directory examples
.