mirror of
https://github.com/ash-project/ash_postgres.git
synced 2024-09-19 13:03:14 +12:00
mark (i)like functions as predicates
This commit is contained in:
parent
c72b57ece5
commit
e72214e6b7
2 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@ defmodule AshPostgres.Functions.ILike do
|
||||||
Maps to the builtin postgres function `ilike`.
|
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]]
|
def args, do: [[:string, :string]]
|
||||||
end
|
end
|
||||||
|
|
|
@ -3,7 +3,7 @@ defmodule AshPostgres.Functions.Like do
|
||||||
Maps to the builtin postgres function `like`.
|
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]]
|
def args, do: [[:string, :string]]
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue