Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update readme for NPM package #118

Open
malipetek opened this issue Feb 7, 2024 · 0 comments
Open

Update readme for NPM package #118

malipetek opened this issue Feb 7, 2024 · 0 comments

Comments

@malipetek
Copy link

Example in npm readme for sqlite3 does not work for me using m1 and yarn
This is the working setup for me

import sqlite3 from "sqlite3";
import * as sqlite_vss from "sqlite-vss";

const db = new sqlite3.Database(":memory:"); // or ./memory.sqlite or memory.db
db.loadExtension(sqlite_vss.getVectorLoadablePath());
db.loadExtension(sqlite_vss.getVssLoadablePath());

db.get("select vss_version()", (err, row) => {
  console.log(row); // {vss_version(): "v0.2.0"}
});

export default db;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant