-
dockertest
Write better integration tests! Dockertest helps you boot up ephermal docker images for your Go tests with minimal work.
-
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.
There's a package called ory/dockertest that I use for running docker containers as part of the integration tests, I wrote a post covering it, although that one is using memcached, that idea for setting it up is similar.
On a related note, generating queries using Sprintf is a security concern which could lead to SQL injections (another post, there are alternatives like placeholders, using Masterminds/squirel or even better generating type safe Go code from actual SQL statements using kyleconroy/sqlc
On a related note, generating queries using Sprintf is a security concern which could lead to SQL injections (another post, there are alternatives like placeholders, using Masterminds/squirel or even better generating type safe Go code from actual SQL statements using kyleconroy/sqlc