mirror of
https://github.com/asg017/sqlite-vec.git
synced 2026-04-25 00:36:56 +02:00
Initial commit
This commit is contained in:
commit
4c8ad629e0
28 changed files with 6758 additions and 0 deletions
23
site/index.html
Normal file
23
site/index.html
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
<html>
|
||||
<body>
|
||||
<h1>sqlite-vec</h1>
|
||||
<div id="target">
|
||||
|
||||
</div>
|
||||
<link rel="stylesheet" href="./slim.css"/>
|
||||
<script type="module">
|
||||
import {attach} from "./slim.js";
|
||||
import {default as init} from "./sqlite3.mjs";
|
||||
const sqlite3 = await init();
|
||||
const v = new sqlite3.oo1.DB(":memory:").selectValue('select vec_version()');
|
||||
document.querySelector('h1').textContent += `(${v})`;
|
||||
|
||||
attach(document.body.querySelector('#target'), sqlite3,
|
||||
`select
|
||||
sqlite_version(),
|
||||
vec_version(),
|
||||
vec_to_json(X'00000000000080bf');
|
||||
`);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue