Documentation Index
Fetch the complete documentation index at: https://private-7c7dfe99-page-updates.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
clickhouse-format utility
Allows formatting input queries. Keys:--helpor-h— Produce help message.--query— Format queries of any length and complexity.--hiliteor--highlight— Add syntax highlight with ANSI terminal escape sequences.--oneline— Format in single line.--max_line_length— Format in single line queries with length less than specified.--comments— Keep comments in the output.--quietor-q— Just check syntax, no output on success.--multiqueryor-n— Allow multiple queries in the same file.--obfuscate— Obfuscate instead of formatting.--seed <string>— Seed arbitrary string that determines the result of obfuscation.--backslash— Add a backslash at the end of each line of the formatted query. Can be useful when you copy a query from web or somewhere else with multiple lines, and want to execute it in command line.--semicolons_inline— In multiquery mode, write semicolons on last line of query instead of a new line.
Examples
- Formatting a query:
- Highlighting and single line:
- Multiqueries:
- Obfuscating:
- Adding backslash: