mark (i)like functions as predicates

This commit is contained in:
Barnabas Jovanovics 2024-02-07 09:20:50 +01:00
parent c72b57ece5
commit e72214e6b7
2 changed files with 2 additions and 2 deletions

View file

@ -3,7 +3,7 @@ defmodule AshPostgres.Functions.ILike do
Maps to the builtin postgres function `ilike`.
"""
use Ash.Query.Function, name: :ilike
use Ash.Query.Function, name: :ilike, predicate?: true
def args, do: [[:string, :string]]
end

View file

@ -3,7 +3,7 @@ defmodule AshPostgres.Functions.Like do
Maps to the builtin postgres function `like`.
"""
use Ash.Query.Function, name: :like
use Ash.Query.Function, name: :like, predicate?: true
def args, do: [[:string, :string]]
end