-
scan
Scan provides the ability to to scan sql rows directly to any defined structure. (by stephenafamo)
-
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.
Yes, the rows/scanning pattern is pretty verbose and gets annoying fast, which is why there are a lot of packages to help simplify this. The most popular is sqlx
Personally, I created a scanning package specifically for this based on generics and even more flexibility, still needs a bit more documentation, but check it out Scan.
For me sqlc work wonders. If you are developing a user facing api and are fine to go with graphql, with gqlgen you can even autobind (search the page for @goModel) the models that sqlc generates from your queries. A glorious match
For me sqlc work wonders. If you are developing a user facing api and are fine to go with graphql, with gqlgen you can even autobind (search the page for @goModel) the models that sqlc generates from your queries. A glorious match
Take a look at sqlboiler. It's an ORM that generates the database models for you based on the SQL schema.