-
tidb-lite
Using tidb-lite to create a TiDB server with mocktikv mode in your application or unit test.
Use tidb-lite to run TiDB in mocktikv mode in Golang code.
-
InfluxDB
InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
-
Another common method is to mock SQL services in the test. At present, the more popular solution is to use 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 more popular project.
Related posts
-
Stubbing HTTP communication in E2E test with Hoverfly
-
Integration Tests in Go with Cucumber, Testcontainers, and HTTPMock
-
Princípios SOLID em GoLang - Dependency Inversion Principle (DIP)
-
I Write Tests in Go
-
How do you unit-test code that reaches out to the db, without introducing interfaces everywhere?