Skip to content

Commit

Permalink
v0.4.0-pre.10
Browse files Browse the repository at this point in the history
- uses libsql from vector branch (commit: tursodatabase/libsql@8a8a897)
  • Loading branch information
sivukhin committed Jul 9, 2024
1 parent e919712 commit e21804d
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 11 deletions.
14 changes: 7 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ crate-type = ["cdylib"]

[dependencies]
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
libsql = { git = "https://github.com/tursodatabase/libsql/", rev = "7b8bb905ab19f8988ace702d025361e6b6d7c377", features = ["encryption"] }
libsql = { git = "https://github.com/tursodatabase/libsql/", rev = "8a8a897833ec98a6201d22d5c5cf803cd57f98c6", features = ["encryption"] }
tracing = "0.1"
once_cell = "1.18.0"
tokio = { version = "1.29.1", features = [ "rt-multi-thread" ] }
Expand Down
3 changes: 3 additions & 0 deletions integration-tests/tests/sync.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,9 @@ test.serial("Statement.run() for vector feature with Float32Array bind parameter

const selectStmt = db.prepare("SELECT embedding FROM vector_top_k('t_idx', vector('[2,2,2,2,2,2,2,2]'), 1) n JOIN t ON n.rowid = t.rowid");
t.deepEqual(selectStmt.raw().get()[0], Buffer.from(new Float32Array([1,1,1,1,1,1,1,1]).buffer));

// we need to explicitly delete this table because later when sqlite-based (not LibSQL) tests will delete table 't' they will leave 't_idx_shadow' table untouched
db.exec(`DROP TABLE t`);
});

test.serial("Statement.columns()", async (t) => {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "libsql",
"version": "0.4.0-pre.9",
"version": "0.4.0-pre.10",
"description": "A better-sqlite3 compatible API for libSQL that supports Bun, Deno, and Node",
"os": [
"darwin",
Expand Down

0 comments on commit e21804d

Please sign in to comment.