# Lesson 5: Talking to Postgres Talking to Postgres comes up in almost every real Go project. We start with the why, then write code together. Read the full lesson: [https://glibcode.net/courses/go-apis/lessons/5](https://glibcode.net/courses/go-apis/lessons/5) ## Files - `main.go`: database/sql with the pgx driver ## Run it ```sh go run ./lessons/05-talking-to-postgres ``` ## Exercises See [exercises.md](exercises.md). Ask in the forum after you have tried.