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