gosqlite documentation
gosqlite.org is a CGo-free SQLite driver + ecosystem for Go — a drop-in replacement for mattn/go-sqlite3, modernc.org/sqlite, and the glebarez/sqlite gorm dialector, with first-class typed APIs for vector search, full-text search, encryption at rest, in-memory MVCC, hybrid ranking, a user-implementable VFS, a bounded page cache, and a catalog of loadable Go SQL extensions — all in one module, all pure Go.
The README is the high-level landing page. These docs are the deep reference.
Start here
Section titled “Start here”- Getting started — install, your first query, and choosing a driver name.
- Migrating — drop-in recipes from mattn / modernc / glebarez / gorm-sqlite / ncruces.
- Configuration —
sqlite.Config, typed pragmas, open shortcuts.
Guides
Section titled “Guides”| Area | Pages |
|---|---|
| Search | Vector search · Full-text search · Hybrid search |
| gorm | gorm integration + tag-driven sidecars |
| Storage / VFS | Encryption · Checksums · In-memory & embedded · Custom VFS · Page cache |
| Driver capabilities | Hooks & introspection · Sessions / changesets · Window functions & UDFs · sqlitex helpers · Observability |
Extensions
Section titled “Extensions”The loadable ext/ catalog: overview · scalars & aggregates · virtual tables · stores.
Reference
Section titled “Reference”Driver names · DSN flags · Build tags · Limits · Performance · Supported Go · SQLite version
The Go API reference (every type and function) is on pkg.go.dev. AI agents integrating the package should look at the skills/ folder.