go-sqlmock

Sql mock driver for golang to test database interactions (by DATA-DOG)

Go-sqlmock Alternatives

Similar projects and alternatives to go-sqlmock

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better go-sqlmock alternative or higher similarity.

Suggest an alternative to go-sqlmock

Reviews and mentions

Posts with mentions or reviews of go-sqlmock. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-04-23.
  • Go Package for better integration tests: github.com/ory/dockertest
    dev.to | 2021-04-23
    We have different ways to write our tests depending on what datastore we are using, for example if we are testing database calls that happen to be using database/sql then importing a package like github.com/DATA-DOG/go-sqlmock could work.
  • tidb-lite: used for unit testing of Golang database-related code
    dev.to | 2021-02-14
    Another common method is to mock SQL services in the test. At present, the more popular solution is to use go-sqlmock.
  • How to mock DB for unit tests?
    reddit.com/r/golang | 2021-02-08
    I've been using https://github.com/DATA-DOG/go-sqlmock. It's pretty well documented, should be enough to get going.
    reddit.com/r/golang | 2021-02-08
    I've never bothered with any ORM, but for mocking the underlying sql.DB I've been using https://github.com/DATA-DOG/go-sqlmock which is very simple and straightforward to use.

Stats

Basic go-sqlmock repo stats
4
3,798
0.7
about 1 month ago

DATA-DOG/go-sqlmock is an open source project licensed under GNU General Public License v3.0 or later which is an OSI approved license.

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
Find remote Go jobs at our new job board 99remotejobs.com. There are 4 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.