v.21.4Improvements
Add --backslash option to clickhouse-format for line-ending backslashes
Add option--backslashforclickhouse-format, which can add a backslash at the end of each line of the formatted query. #21494 (flynn).
Why it matters
This feature helps users produce formatted SQL queries with line continuation characters (backslashes) at the end of each line, facilitating multi-line query handling or copy-pasting query snippets into scripts or interactive environments where backslash continuation is needed.How to use it
Runclickhouse-format with the --backslash option. For example:clickhouse-format --backslash < input.sqlThis will output the formatted query with a backslash appended at the end of every line.