Registry / database / go-sqlite

go-sqlite

JSON →
library1.4.2gogounverified

A Go interface to SQLite 3 with a low-level API close to the C library, supporting connection pooling and extensions.

go get zombiezen.com/go/sqlite
INSTALL
IMPORT
SIG · GO-SQLITE
G
go-sqlite
databasegov1.4.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

sqlite
zombiezen.com/go/sqlite

Opens an in-memory SQLite database connection.

package main import ( "fmt" "zombiezen.com/go/sqlite" ) func main() { conn, err := sqlite.OpenConn(":memory:", sqlite.OpenReadWrite) if err != nil { panic(err) } defer conn.Close() fmt.Println("SQLite connection opened") }
Debug
Known issues
gotchaThis package is not a database/sql driver; it provides a different API.
fix
Use zombiezen.com/go/sqlite/sqlitex for higher-level helpers or consider using database/sql with a driver like github.com/mattn/go-sqlite3.
affects: all
Upgrade
Version history
1.4.2latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
go-sqlite — go get go-sqlite · libregistry