{"repo":"DATA-DOG/go-sqlmock","free":true,"listed":false,"github":"https://github.com/DATA-DOG/go-sqlmock","clone":"git clone https://github.com/DATA-DOG/go-sqlmock.git","description":"Sql mock driver for golang to test database interactions","language":"Go","stars":6566,"topics":["sql-driver","go","mock","database","tdd","testing","golang","sql"],"license":null,"category":"databases-storage","readme_excerpt":"Sql driver mock for Golang sqlmock is a mock library implementing sql/driver. Which has one and only purpose - to simulate any sql driver behavior in tests, without needing a real database connection. It helps to maintain correct TDD workflow. - this library is now complete and stable. (you may not find new changes for this reason) - supports concurrency and multiple connections. - supports go1.8 Context related feature mocking and Named sql parameters. - does not require any modifications to your source code. - the driver allows to mock any sql driver method behavior. - has strict by default expectation order matching. - has no third party dependencies. NOTE: in v1.2.0 sqlmock.Rows has changed to struct from interface, if you were using any type references to that interface, you will need to switch it to a pointer struct type. Also, sqlmock.Rows were used to implement driver.Rows interface, which was not required or useful for mocking and was removed. Hope it will not cause issues. Looking for maintainers I do not have much spare time for this library and willing to transfer the repository ownership to person or an organization motivated to maintain it. Open up a conversation if you are interested. See #230. Install go get github.com/DATA-DOG/go-sqlmock Documentation and Examples Visit godoc for general examples and public api reference. See .travis.yml for supported go versions. Different use case, is to functionally test with a real database - go-txdb all database related ","default_branch":null,"files":null,"tree":[],"storefront":"/r/DATA-DOG","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/DATA-DOG/go-sqlmock/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}