ash_postgres v0.3.0 AshPostgres.Predicates.Trigram View Source
A filter predicate that filters based on trigram similarity.
See the postgres docs on https://www.postgresql.org/docs/9.6/pgtrgm.html for more information.
Requires the pg_trgm extension. Configure which extensions you have installed in your AshPostgres.Repo
# Example
filter(query, name: [trigram: [text: "geoff", greater_than: 0.4]])
Link to this section Summary
Functions
Callback implementation for Ash.Filter.Predicate.compare/2
.
Callback implementation for Ash.Filter.Predicate.new/3
.
Link to this section Functions
Specs
compare(Ash.Filter.Predicate.predicate(), Ash.Filter.Predicate.predicate()) :: Ash.Filter.Predicate.comparison() | :unknown
Callback implementation for Ash.Filter.Predicate.compare/2
.
Callback implementation for Ash.Filter.Predicate.new/3
.