|previous : next|
Available in versions: Dev (3.19)
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.
$$ 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.
Settings settings = new Settings() .withRenderDollarQuotedStringToken("token");
Do you have any feedback about this page? We'd love to hear it!