ash_postgres/lib/types/tsvector.ex
2023-09-20 17:28:24 -04:00

12 lines
321 B
Elixir

defmodule AshPostgres.Tsvector do
@moduledoc """
A thin wrapper around `:string` for working with tsvector types in calculations.
A calculation of this type cannot be selected, but may be used in calculations.
"""
use Ash.Type.NewType, subtype_of: :term
@impl true
def storage_type(_), do: :tsvector
end