Load the sqlite-vec extension

This commit is contained in:
Claudio Ortolina
2024-12-17 08:34:58 +00:00
parent 9cae972bc5
commit 14934b25d9
6 changed files with 9 additions and 1 deletions
+7
View File
@@ -7,4 +7,11 @@ defmodule MusicLibrary.RepoTest do
assert [["hello"]] == result.rows
end
end
describe "correctly loads the vec0 (sqlite-vec) extension" do
test "returns the version" do
{:ok, result} = MusicLibrary.Repo.query("SELECT vec_version()")
assert [["v0.1.6"]] == result.rows
end
end
end