sqlite

package
v0.4.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package sqlite registers the SQLite GORM dialector, golang-migrate driver, DSN builder, and cleanup hooks with pkg/services/db. Blank-import it to enable SQLite support without forcing every binary to pull in SQLite when they only use other engines.

The engine is github.com/mattn/go-sqlite3, which wraps the C SQLite library and registers the "sqlite3" database/sql driver. Both the dialector and the migration driver run on it, so a binary links one SQLite engine. Building with CGO_ENABLED=0 still compiles, but connecting fails at runtime with "go-sqlite3 requires cgo to work".

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL