SaaSHub helps you find the best software and product alternatives Learn more →
Top 3 Go sql-driver Projects
-
Project mention: How do you unit-test code that reaches out to the db, without introducing interfaces everywhere? | /r/golang | 2023-08-16
-
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
3 years ago I created a internal library where I worked to setup the testing with the db's. One param was the schema directory and the other one was the path of the data insertion file. It worked really well but was a little slow. It was a little bit weird to configure the container to run the tests. As I would have to give access to go container that ran the unit tests access to docker. But back then I was running boot2docker and made things very cumbersome. I think with a local docker things would be way simpler. I ended up using and normal DB from the CI/CD and https://github.com/DATA-DOG/go-txdb If I had to do it again I might do an hybrid in-between the two solutions
Go sql-driver related posts
- How do you unit-test code that reaches out to the db, without introducing interfaces everywhere?
- Integration Tests with Postgres
- Can you set expectations for SQL transaction using Testify?
- SQL mock driver for Golang to test database interactions
- Can't get a specifc SQL query with pgx to work
- [HELP] how to test this piece of code?
- [HELP] Testing SQL queries and functions that use SQL queries in Golang.
-
A note from our sponsor - SaaSHub
www.saashub.com | 28 Mar 2024
Index
What are some of the best open-source sql-driver projects in Go? This list will help you:
Project | Stars | |
---|---|---|
1 | go-sqlmock | 5,786 |
2 | sqlhooks | 626 |
3 | go-txdb | 611 |