BuildBot

From Source to Service

SQLite persistence

Lesson 3 of 5

database/sql is the standard interface, the driver choice is cgo speed vs pure-Go portability, and a versioned migration runner is twenty lines.

What you'll learn

  • Use database/sql — Go's standard, driver-agnostic SQL interface
  • Choose between the cgo (mattn) and pure-Go (modernc.org) SQLite drivers
  • Apply schema changes with a simple versioned migration pattern
Members only

A free account unlocks this lesson and every other one.

Runnable challenges, knowledge checks, and progress that syncs across your devices. No card needed.

Not sure yet? Try the free lesson first: A real HTTP service