mirror of
https://github.com/asg017/sqlite-vec.git
synced 2026-04-25 00:36:56 +02:00
wasm tests and fixes
This commit is contained in:
parent
79d6ea1aea
commit
6c97750e48
5 changed files with 134 additions and 3 deletions
10
tests/test-wasm.mjs
Normal file
10
tests/test-wasm.mjs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
async function main() {
|
||||
const { default: init } = await import("../dist/.wasm/sqlite3.mjs");
|
||||
const sqlite3 = await init();
|
||||
const vec_version = new sqlite3.oo1.DB(":memory:").selectValue(
|
||||
"select vec_version()"
|
||||
);
|
||||
console.log(vec_version);
|
||||
}
|
||||
|
||||
main();
|
||||
Loading…
Add table
Add a link
Reference in a new issue