go-gorm/sqlite

GORM sqlite driver

Go

232

147 commits

updated Sep 8, 2026

See the code

README

GORM SQLite Driver

CI

The official SQLite driver for GORM, based on go-sqlite3 (requires CGO).

Quick Start

import (
  "gorm.io/driver/sqlite"
  "gorm.io/gorm"
)

db, err := gorm.Open(sqlite.Open("gorm.db"), &gorm.Config{})

For full documentation, visit https://gorm.io.

Pure Go Alternatives

If you need a CGO-free SQLite driver, the following community projects are available:

Usage is identical — simply swap the import path:

import (
  "github.com/glebarez/sqlite" // or "github.com/libtnb/sqlite"
  "gorm.io/gorm"
)

db, err := gorm.Open(sqlite.Open("gorm.db"), &gorm.Config{})
gorm-sqlite-driver

Significant stargazers

julienrbrt

210 followers · starred Jan 2025

go-gorm/sqlite

GORM sqlite driver

Go

232

147 commits

updated Sep 8, 2026

See the code

README

GORM SQLite Driver

CI

The official SQLite driver for GORM, based on go-sqlite3 (requires CGO).

Quick Start

import (
  "gorm.io/driver/sqlite"
  "gorm.io/gorm"
)

db, err := gorm.Open(sqlite.Open("gorm.db"), &gorm.Config{})

For full documentation, visit https://gorm.io.

Pure Go Alternatives

If you need a CGO-free SQLite driver, the following community projects are available:

Usage is identical — simply swap the import path:

import (
  "github.com/glebarez/sqlite" // or "github.com/libtnb/sqlite"
  "gorm.io/gorm"
)

db, err := gorm.Open(sqlite.Open("gorm.db"), &gorm.Config{})
gorm-sqlite-driver

Significant stargazers

julienrbrt

210 followers · starred Jan 2025