Skip to content

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.

  • Getting started — install, your first query, and choosing a driver name.
  • Migrating — drop-in recipes from mattn / modernc / glebarez / gorm-sqlite / ncruces.
  • Configurationsqlite.Config, typed pragmas, open shortcuts.
AreaPages
SearchVector search · Full-text search · Hybrid search
gormgorm integration + tag-driven sidecars
Storage / VFSEncryption · Checksums · In-memory & embedded · Custom VFS · Page cache
Driver capabilitiesHooks & introspection · Sessions / changesets · Window functions & UDFs · sqlitex helpers · Observability

The loadable ext/ catalog: overview · scalars & aggregates · virtual tables · stores.

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.