1 Commits

Author SHA1 Message Date
Sheng-Dean Chang
281d0eea17 Add gorm.Gormw, an interface wrapper for gorm.DB.
This commit adds an interface-equivalent of gorm.DB so that those who prefer mocking gorm.DB under test can easily do so. It also adds 2 functions Wrap() and Openw(), to facilitate creating gorm.Gormw instances.
2017-04-06 16:52:49 -07:00