mattn/go-sqlite3

sqlite3 driver for go using database/sql

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 29 minutes ago
Added to GitGenius on September 7th, 2026
Created on November 11th, 2011
Open Issues & Pull Requests: 150 (+0)
GitHub issues: Enabled
Number of forks: 1,174
Total Stargazers: 9,237 (+0)
Total Subscribers: 146 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 18.5 hours
Mean response time: 208.2 days
90th percentile: 692.5 days
Tracked items: 133

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 92% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Only 4% of issues opened in the past year have been closed. Three people close 87% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 36
New in 7 days: 1
Closed in 7 days: 6
Avg open age: 1,405 days
Stale 30+ days: 33
Stale 90+ days: 33

Recent activity

Opened in 7 days: 1
Closed in 7 days: 6
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • enhancement (5)
  • help wanted (3)
  • question (1)
  • research (1)

Detailed Description

go-sqlite3 is a SQLite driver for Go that conforms to the built-in database/sql interface.

The tool solves the problem of accessing SQLite databases from Go applications by providing a cgo-based driver that implements the standard database/sql API. It wraps the SQLite C library, allowing developers to use familiar Go database patterns while leveraging SQLite's capabilities. The driver supports connection strings with configurable DSN options that can be appended to the database filename, enabling fine-grained control over connection behavior and database features.

Developers should choose this driver if they need SQLite support in Go applications and are comfortable with cgo dependencies. The project suits applications ranging from simple file-based databases to more complex deployments, including Android and ARM platforms. The tool requires a gcc compiler and CGO_ENABLED=1 to build, which may present constraints in certain environments. The README indicates the stable version is v1.14 or later, not v2, and the project supports multiple Go versions according to its release policy.

The project maintains active engagement with its codebase through regular updates and cross-platform testing via CI workflows. Development activity spans multiple compilation targets including Linux distributions, macOS, Windows, and embedded platforms. The tool includes support for advanced features such as user authentication with password-protected databases, attached databases, and extensions like Spatialite for spatial data handling. Documentation is comprehensive, with API references, examples, and detailed compilation instructions for various platforms and scenarios.