Gediminas Morkevicius
Gediminas Morkevicius
Hi, very likely then that from some go version it now closes db in separate go routine and though synchronously we can no longer receive the close call to the...
Hi, this package is not using unsafe, just mimics the standard sql driver. I do not see the point in testing different archs, which are supported by go.
Hi, it requires a ValueConverter registered through the sqlmock.Option. if the driver you use provides those ValueConverters, you should just register them. Otherwise you may need to copy them from...
Hi, probably should follow as an improvement to #158 in order to tell whether sql was not matched
I think your expectation is wrong, instead of ExpectQuery seems like there is ExpectExec needed. Update and insert statements are not Query
Hi, I agree this could be helpful, but currently I’m too busy with a child. If you could contribute it, that would be useful
Hi, at the moment I do not think this is mockable, probably worth looking how it could be added. Regarding RowsWillBeClosed, it just adds an expectation that the mocked rows...
will be added to #187 at some point
Sqlmock is based on a standard sql driver interface. It will not try to adapt to different frameworks, which use it in non standard expected ways. So you can just...
Sqlmock is a mock database, it does not know that you use gorm or any other thing underneath. If you use non standard arguments to sql value converter. You need...