# go-sqlite3

> A SQLite3 driver for Go using database/sql

Source: https://talira.ai/catalog/go-sqlite3-gkm992nx
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / databases / drivers](https://talira.ai/categories/libraries/databases/drivers)
- Licence: MIT[^2]
- Pricing: Free and open source[^2]
- Free tier: yes[^2]
- Backed by: [Yasuhiro Matsumoto](https://talira.ai/orgs/yasuhiro-matsumoto.md)

go-sqlite3 is the widely used SQLite driver for Go: it plugs into the standard library database/sql interface, so you open a [SQLite](https://talira.ai/catalog/sqlite-cys3nt23.md) database with a connection string and query it like any other SQL database. It bundles SQLite and can turn on extensions and options at build time with build tags, such as full-text search, JSON and user authentication. It is a cgo package, so it compiles SQLite with a C compiler.

## Links

- Website: https://mattn.github.io/go-sqlite3/
- GitHub: https://github.com/mattn/go-sqlite3
- Docs: https://pkg.go.dev/github.com/mattn/go-sqlite3

## Problems it solves

- use a SQLite database from my Go program
- store data in a local file database in a Go app with database/sql
- embed SQLite in a Go service without running a database server

## Features

- database/sql driver for SQLite
- bundled SQLite
- extensions such as FTS and JSON chosen by build tag
- cross-compiles with a C toolchain

## Limitations

- It's a cgo package: building it needs CGO_ENABLED=1 and a gcc compiler on the path[^1]

## Trust

Overall: 0.70 out of 1.
Signals: maintenance 0.99, adoption 0.79, momentum 0.52, community 0.93, backing 0.30, extensibility 0.00.

- last commit 12 days ago
- 59 commits in the last 90 days
- latest release v1.14.53 24 days ago
- 9.3k GitHub stars
- 216 contributors
- accepts sponsorship (Patreon, Open Collective)
- backed by Yasuhiro Matsumoto

## Related

- Works with [SQLite](https://talira.ai/catalog/sqlite-cys3nt23.md)

## Alternatives

- [Go-MySQL-Driver](https://talira.ai/catalog/go-mysql-driver-ew83ck4j.md): A pure Go MySQL driver for the database/sql package

## Sources

[^1]: https://github.com/mattn/go-sqlite3/blob/master/README.md (checked 28 Nov 2026)
[^2]: https://github.com/mattn/go-sqlite3/blob/master/LICENSE (checked 28 Nov 2026)
