### Manual Registration of sqlite-vec Source: https://github.com/luist18/sqlite-vec-go/blob/main/README.md Use the bindings package for manual registration of sqlite-vec with an existing sqlite3 connection. This provides more control over the registration process. ```go import ( "github.com/luist18/sqlite-vec-go/bindings" "github.com/ncruces/go-sqlite3" ) func open() (*sqlite3.Conn, error) { db, err := sqlite3.Open(":memory:") if err != nil { return nil, err } if err := bindings.Register(db); err != nil { db.Close() return nil, err } return db, nil } ``` -------------------------------- ### Automatic Registration of sqlite-vec Source: https://github.com/luist18/sqlite-vec-go/blob/main/README.md Import this package before opening any SQLite connections to automatically register sqlite-vec with ncruces/go-sqlite3. This is the simplest way to enable vector search capabilities. ```go import ( "database/sql" _ "github.com/luist18/sqlite-vec-go" _ "github.com/ncruces/go-sqlite3/driver" ) func open() (*sql.DB, error) { return sql.Open("sqlite3", ":memory:") } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.