Our great sponsors
-
go-sql-driver/mysql
Go MySQL Driver is a MySQL driver for Go's (golang) database/sql package (by go-sql-driver)
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
-
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.
For convenience, it is better to use https://github.com/lib/pq in conjunction with https://github.com/jmoiron/sqlx, you will have all the data in json
I'm following Alex Edwards web dev book, he uses MySQL with go-sql-driver/mysql , i want to use Postgres, which one should I use?
I can recommend pairing it with sqlc: https://github.com/kyleconroy/sqlc
For convenience, it is better to use https://github.com/lib/pq in conjunction with https://github.com/jmoiron/sqlx, you will have all the data in json
Related posts
- Question about inserting date into MySQL?
- Build REST API with Go Fiber and PlanetScale - Part 2
- Stuck $GOPATH/go.mod exists but should not
- I Could Not Run a Sample Code to Use MySQL with Go on Docker (Error 1064)
- Connecting to mysql returns Acces denied. Can only connect to the DB through dbeaver using a specific driver properties configuration.