Skip to content
Advertisement

Howto expose new SQL function in JOOQ

I want to use REGEXP_REPLACE sql function (I’m targeting Postgres), but after quick inspection of DSL class in JOOQ it seems that it is not exposed yet.

How should I approach the problem of adding new function?

  • I can try extending AbstractFunction, similarly to org.jooq.impl.Replace
  • Is there any more general way to calling functions not exposed by JOOQ’s DSL?

Advertisement

Answer

Use plain SQL templating

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement