Documentation
¶
Overview ¶
Package engine provides helpers for working with the modernc.org/sqlite driver in this module: opening connections and (optionally) registering SQL scalar functions. It intentionally keeps a thin surface so other packages can share the same driver instance.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Open ¶
Open opens a SQLite database using the modernc.org/sqlite driver.
For file-based databases, pass a path like "./db.sqlite". For in-memory databases, pass ":memory:".
func RegisterVectorFunctions ¶
RegisterVectorFunctions registers vec_cosine and vec_l2 with the driver so they are available on new connections opened after this call. Note: existing open connections will not see new functions.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.