mirror of
https://github.com/asg017/sqlite-vec.git
synced 2026-04-25 00:36:56 +02:00
docs
This commit is contained in:
parent
4febdff11a
commit
356f75cca7
17 changed files with 350 additions and 166 deletions
|
|
@ -0,0 +1,17 @@
|
|||
# `sqlite-vec` in the Browser with WebAssembly
|
||||
|
||||
```html
|
||||
<html>
|
||||
<body>
|
||||
<script type="module">
|
||||
import {default as init} from "https://cdn.jsdelivr.net/npm/sqlite-vec-wasm-demo@latest/sqlite3.mjs";
|
||||
|
||||
const sqlite3 = await init();
|
||||
const db = new sqlite3.oo1.DB(":memory:");
|
||||
|
||||
const [sqlite_version, vec_version] = db.selectArray('select vec_version();')
|
||||
console.log(`vec_version=${vec_version}`);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue