From 2e9a819f31d5dc6c4fb65c43a5902228d67a807c Mon Sep 17 00:00:00 2001 From: Marcello Fuschi Date: Wed, 13 Aug 2025 16:55:50 +0200 Subject: [PATCH] Add type definition to Vector Ecto type --- lib/pgvector/ecto/vector.ex | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/pgvector/ecto/vector.ex b/lib/pgvector/ecto/vector.ex index 2c22193..9b1d36b 100644 --- a/lib/pgvector/ecto/vector.ex +++ b/lib/pgvector/ecto/vector.ex @@ -2,6 +2,8 @@ if Code.ensure_loaded?(Ecto) do defmodule Pgvector.Ecto.Vector do use Ecto.Type + @type t :: %Pgvector{data: binary()} + def type, do: :vector def cast(value) do