pub trait PgTrgmExpressionMethodswhere
Self: Expression + Sized,{
// Provided method
fn fuzzy<U>(self, right: U) -> PgTrgmFuzzy<Self, U::Expression>
where Self::SqlType: SqlType,
U: AsExpression<Self::SqlType> { ... }
}Expand description
Implements pg_trgm methods for diesel
Provided Methods§
Sourcefn fuzzy<U>(self, right: U) -> PgTrgmFuzzy<Self, U::Expression>
fn fuzzy<U>(self, right: U) -> PgTrgmFuzzy<Self, U::Expression>
Fuzzy search. Uses the pg_trgm % operator.
The % operator uses the pg_trgm function similarity in the background with a default value of 0.3.
If you want a different value use similarity with gt/lt instead.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.