Skip to content

v0.43.0

Release Date: 2026-11-30

SQLite is modernc.org/sqlite, which is pure Go, instead of mattn/go-sqlite3, which needs cgo. Hosted deployments use PostgreSQL and are unaffected.

What changes

  • Nothing needs cgo, in the module or its tests.
  • driver: sqlite works in a binary built with CGO_ENABLED=0. Before, it was accepted there and failed at startup.
  • Foreign keys are on for a SQLite database unless its DSN turns them off.
  • Existing DSNs keep working. go-sqlite3's options for foreign keys, the busy timeout, the journal mode, synchronous and the transaction lock are translated. Any other option is refused, because the driver would ignore it.
  • Existing database files keep working: times are stored in the same format.

Upgrading

No migration. A host that relied on this module to register the sqlite3 driver opens sqlite, or imports the driver it wants itself.

In a shared in-memory database, a connection waits for a table another has locked, where go-sqlite3 failed at once. A test that uses a second connection inside a transaction needs a database file.