Load the sqlite-vec extension
This commit is contained in:
+2
-1
@@ -36,7 +36,8 @@ config :music_library, MusicLibrary.Repo,
|
|||||||
auto_vacuum: :incremental,
|
auto_vacuum: :incremental,
|
||||||
temp_store: :memory,
|
temp_store: :memory,
|
||||||
load_extensions: [
|
load_extensions: [
|
||||||
MusicLibrary.Repo.extension_path("unicode")
|
MusicLibrary.Repo.extension_path("unicode"),
|
||||||
|
MusicLibrary.Repo.extension_path("vec0")
|
||||||
]
|
]
|
||||||
|
|
||||||
cloak_encryption_key =
|
cloak_encryption_key =
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -7,4 +7,11 @@ defmodule MusicLibrary.RepoTest do
|
|||||||
assert [["hello"]] == result.rows
|
assert [["hello"]] == result.rows
|
||||||
end
|
end
|
||||||
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
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user