Skip to content

Commit 950eaee

Browse files
Add type definition to Vector Ecto type (#11)
1 parent c7e266a commit 950eaee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/pgvector/ecto/vector.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ if Code.ensure_loaded?(Ecto) do
22
defmodule Pgvector.Ecto.Vector do
33
use Ecto.Type
44

5+
@type t :: %Pgvector{data: binary()}
6+
57
def type, do: :vector
68

79
def cast(value) do

0 commit comments

Comments
 (0)