Returns the SQL text of the tree of which this SqlNode is the root. Typical return values are: 'It''s a bird!' NULL 12.3 DATE '1969-04-29' @param transform Transform that sets desired writer configuration
(UnaryOperator<SqlWriterConfig> transform)
| 152 | * @param transform Transform that sets desired writer configuration |
| 153 | */ |
| 154 | public SqlString toSqlString(UnaryOperator<SqlWriterConfig> transform) { |
| 155 | final SqlWriterConfig config = transform.apply(SqlPrettyWriter.config()); |
| 156 | SqlPrettyWriter writer = new SqlPrettyWriter(config); |
| 157 | unparse(writer, 0, 0); |
| 158 | return writer.toSqlString(); |
| 159 | } |
| 160 | |
| 161 | /** |
| 162 | * Returns the SQL text of the tree of which this <code>SqlNode</code> is |