This documentation is for the unreleased development version of jOOQ. Click on the above version links to get this documentation for a supported version of jOOQ.
Dollar quoted string token
Applies to ✅ Open Source Edition ✅ Express Edition ✅ Professional Edition ✅ Enterprise Edition
Occasionally, when using the SQLDialect.POSTGRES
dialect, jOOQ renders dollar quoted string literals, in particular for anonymous blocks:
DO $$ BEGIN .. END; $$
The point of these string literals is to avoid having to escape all '
characters in procedural content, or elsewhere.
Sometimes, the $$
token may conflict with string contents, however, such as an identifier. In that case, users can override the delimiter token between the $$
and provide their own, e.g. $token$
.
Example configuration
Settings settings = new Settings() .withRenderDollarQuotedStringToken("token");
Feedback
Do you have any feedback about this page? We'd love to hear it!