Go MIT

sqlite

GORM sqlite driver

G

go-gorm

Dernière activité 8 sept. 2026
go-gorm/sqlite

232

étoiles

217

forks

16

issues ouvertes

gorm-sqlite-driver

Ce README est souvent en anglais.

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:

Driver Repository
github.com/glebarez/sqlite github.com/glebarez/sqlite
github.com/libtnb/sqlite github.com/libtnb/sqlite
github.com/ncruces/go-sqlite3/gormlite github.com/ncruces/go-sqlite3

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{})

Projets similaires

sqlite3 driver for go using database/sql

Cgosqlitesqlite3-driver
Mmattn
9,2 k étoiles1,2 k

pure-Go SQLite driver for Go (SQLite embedded)

Godatabasedrivergo
Gglebarez
875 étoiles43

The fantastic ORM library for Golang, aims to be developer friendly

Gogogolanggorm
Ggo-gorm
40 k étoiles4,2 k