DATA-DOG / go-sqlmock

Sql mock driver for golang to test database interactions
Other
6.05k stars 406 forks source link

How to mock a db can exec or query any times and always success? #194

Closed DQinYuan closed 4 years ago

l3pp4rd commented 4 years ago

sqlmock was not designed for such behavior. will not be supported in near future, there was an attempt, but unsuccessful