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.
Click to show internal directories.
Click to hide internal directories.