Is it possible to use pg_trgm
functions as similarity
in JOOQ?
问问题
183 次
1 回答
1
Whenever some vendor-specific feature is missing from jOOQ, use the plain SQL API:
- https://www.jooq.org/doc/latest/manual/sql-building/plain-sql
- https://www.jooq.org/doc/3.10/manual/sql-building/plain-sql-templating/
Here's how to create a similarity function:
public static Field<Double> similarity(Field<String> a, Field<String> b) {
return DSL.field("similarity({0}, {1})", Double.class, a, b);
}
于 2018-01-31T07:48:35.067 回答