Data & Databases with sqlc/GORM

$4.99

Work confidently with Postgres/MySQL using idiomatic Go.

SKU: GO005 Category:

Data persistence is a core part of most applications, and this course teaches you how to build safe, efficient, and idiomatic database layers in Go. You’ll start by connecting Go applications to PostgreSQL and MySQL using the database/sql package, understanding concepts like connection pools, prepared statements, and transaction handling.

You’ll then explore two powerful tools for working with databases in Go:

  • sqlc: A tool that compiles raw SQL queries into type-safe Go code, ensuring zero runtime errors when writing queries.

  • GORM: An ORM library for Go that allows you to work with structs and relationships instead of raw SQL, speeding up development while still giving you low-level control when needed.

Through practical examples, you’ll create models, perform CRUD operations, run migrations, handle relationships (one-to-many, many-to-many), and optimize performance with indexes. You’ll also address pitfalls like the N+1 query problem, learn transaction best practices, and write integration tests against disposable Docker-based databases.

By the end, you’ll know how to design a data access layer that balances safety, performance, and maintainability—critical for building reliable Go applications at scale.

Shopping Cart
Scroll to Top