ash_postgres/lib/types/ci_string_wrapper.ex

14 lines
382 B
Elixir

defmodule AshPostgres.Type.CiStringWrapper do
@moduledoc false
use Ash.Type
@impl true
def storage_type(_), do: :citext
@impl true
defdelegate cast_input(value, constraints), to: Ash.Type.CiString
@impl true
defdelegate cast_stored(value, constraints), to: Ash.Type.CiString
@impl true
defdelegate dump_to_native(value, constraints), to: Ash.Type.CiString
end