# mattn/go-sqlite3

sqlite3 driver for go using database/sql

Repository: https://github.com/mattn/go-sqlite3
Canonical: https://ross.abutalabs.com/products/go-sqlite3
Homepage: http://mattn.github.io/go-sqlite3
Language: C
License: MIT
License Family: permissive
Topics: go, sqlite, sqlite3-driver
Last push: 2026-08-17T09:24:42+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 98, release rhythm 98, longevity 100
- inputs: {"age_days": 5409, "days_push": 16, "days_rel": 16, "gap_med": 17.5, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 9227, forks 1173 (observed 2026-08-28T04:10:28.969029+00:00)

## What it is
A SQLite3 driver for Go that conforms to the built-in database/sql interface, implemented as a cgo package bundling the SQLite amalgamation. It is the de facto standard SQLite driver for Go with support for extensions like Spatialite and user authentication.

## Use cases
- use sqlite from go with database/sql
- embed a local sql database in a go application
- store app data in a single-file database
- query sqlite databases from a go service
- use spatialite extensions in go

## When to choose
- you need a mature, widely used sqlite driver for go
- you want database/sql compatibility
- you need sqlite features like user authentication or spatialite

## When to avoid
- you need a pure-Go driver to avoid cgo and gcc
- you target platforms where cgo is unavailable or painful
- you need high-concurrency writes to a networked database

## Facets
- artifact type: library
- maturity: stable
- function: database-driver, database
- domain: databases, backend, developer-tools
- platform: go, windows, cross-platform
- tags: sqlite, cgo, database-sql, sql, linux, macos

## Member repositories
- mattn/go-sqlite3 (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:28.969029+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:23:16.240513+00:00, confidence not recorded.
  - readme: https://github.com/mattn/go-sqlite3 (fetched 2026-08-28T04:10:28.969029+00:00, sha b5ef065aa0e3)
  - homepage: http://mattn.github.io/go-sqlite3 (fetched 2026-08-29T08:23:03.069066+00:00, sha 07a9dcb4f221)
- Data as of 2026-08-30T08:39:29.467469+00:00.
