Function backend::db::function::similarity
source · pub fn similarity<t1, t2>(
t1: t1,
t2: t2
) -> similarity<<t1 as AsExpression<Text>>::Expression, <t2 as AsExpression<Text>>::Expression>where
t1: AsExpression<Text>,
t2: AsExpression<Text>,
Expand description
The pg_trgm
SQL function similarity
.
Used to find how similar two strings are.
If your column is nullable use similarity_nullable()
instead.