Database¶
๐ Resources¶
๐ Articles¶
- Organising Database Access in Go
- pq - A pure Go postgres driver for Go’s database/sql package
- How to use MongoDB with Go
- How I use Postgres with Go
- Back to basics: Writing an application using Go and PostgreSQL
- Aiven for PostgreSQLยฎ for your Go application
- How to work with Postgres in Go
- A clean way to implement database transaction in Golang
- Generate CRUD Golang code from SQL | Compare db/sql, gorm, sqlx, sqlc
- MICROSERVICES IN GO: ACCESSING POSTGRESQL (PART 1) - PLAIN SQL
- MICROSERVICES IN GO: ACCESSING POSTGRESQL (PART 3) - STATEMENTS BUILDER AND CODE GENERATORS
- MICROSERVICES IN GO: ACCESSING POSTGRESQL (PART 4) - PUTTING IT ALL TOGETHER
- Golang Database Library and ORM Example - Introduction
- Golang Database Library Orm Example - Create
- Golang Database Library Orm Example - List
- Golang Database Library Orm Example - Where IN
- Golang Database Library Orm Example - Get
- Golang Database Library Orm Example - Update
- Golang Database Library Orm Example - Delete
- Golang Database Library Orm Example - One to Many
- Golang Database Library Orm Example - Many to Many
- Golang Database Library Orm Example Dynamic List
- Golang Database Library Orm Example Transaction
- Golang Database Library Orm Example Sql Injection
Videos¶
- Design DB schema and generate SQL code with dbdiagram.io
- Golang Microservices: PostgreSQL via sqlc, squirrel
- Golang Microservices: PostgreSQL: gorm and sqlboiler
๐ฆ Libraries¶
- jackc/pgx - PostgreSQL driver and toolkit for Go
- go-sql-driver/mysql - Go MySQL Driver is a MySQL driver for Go’s (golang) database/sql package
- jmoiron/sqlx - general purpose extensions to golang’s database/sql
- lib/pq - Pure Go Postgres driver for database/sql
- Masterminds/squirrel - Fluent SQL generation for golang
- doug-martin/goqu - SQL builder and query library for golang
- kyleconroy/sqlc - Generate type-safe code from SQL
- mongodb/mongo-go-driver - The Go driver for MongoDB
- georgysavva/scany - Library for scanning data from a database into Go structs and more
- bokwoon95/go-structured-query - Type safe SQL query builder and struct mapper for Go
- github.com/uptrace/bun - SQL-first Golang ORM
- volatiletech/sqlboiler - Generate a Go ORM tailored to your database schema.
Samples¶
- johanbrandhorst/grpc-postgres - An example repo of how I like to use postgres with gRPC
- x1unix/sbda-ledger
- henvic/pgxtutorial
- MarioCarrion/go-database-postgresql
- rafael-piovesan/go-rocket-ride
- gmhafiz/golang-database-library-orm-example - Examples of using various popular database libraries and ORM in Go.
- gmhafiz/go8 - Go + Postgres + Chi Router + sqlx + ent + unit testing Starter Kit for API Development