From ec2ec2aa8fa8befc1017a417caec6b89e412b9e5 Mon Sep 17 00:00:00 2001 From: Lukas Eder Date: Sun, 21 Oct 2012 15:31:55 +0200 Subject: [PATCH] [#1871] Add some documentation indicating jOOQ's pretty printing rendering feature - Added more documentation --- .../src/main/resources/manual-2.6.xml | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/jOOQ-website/src/main/resources/manual-2.6.xml b/jOOQ-website/src/main/resources/manual-2.6.xml index 8c6a83432f..e9fb097112 100644 --- a/jOOQ-website/src/main/resources/manual-2.6.xml +++ b/jOOQ-website/src/main/resources/manual-2.6.xml @@ -4964,6 +4964,48 @@ public final void toSQL(RenderContext context) { +
+ Pretty printing SQL + +

+ As mentioned in the previous chapter about , there are some elements in the that are used for formatting / pretty-printing rendered SQL. In order to obtain pretty-printed SQL, just use the following : +

+ + + + +

+ And then, use the above factory to render pretty-printed SQL: +

+ + + + '1984' +group by "TEST"."AUTHOR"."LAST_NAME" +having count(*) = 2]]> + + +

+ The section about shows an example of how such pretty printing can be used to log readable SQL to the stdout. +

+
+
+
Variable binding