sqlite

package
v2.33.7 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package sqlite links the pure-Go SQLite engine (glebarez/modernc) into nexus/db. Blank-import it to enable Driver "sqlite":

_ "github.com/paulmanoni/nexus/v2/db/sqlite"

Kept out of nexus/db itself so a Postgres or MySQL app doesn't ship the transpiled-C SQLite engine (~5MB of binary) it never opens.

It also gives SQLite the functions Postgres's pgvector and pg_trgm have, computed in Go, unindexed: l2_distance, cosine_distance and inner_product of vectors written as text ([1,2,3]), and similarity, the trigram similarity of two texts. The ORM's vector and trigram searches use them, so they run on SQLite in development and tests.

Jump to

Keyboard shortcuts

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