ash_postgres v0.10.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

Link to this section Functions

Link to this function

new(resource, attribute, opts)

View Source

Callback implementation for Ash.Filter.Predicate.new/3.