engine

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

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

func Open(dsn string) (*sql.DB, error)

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

func RegisterVectorFunctions(_ *sql.DB) error

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.

Jump to

Keyboard shortcuts

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