Class ChFormatter
java.lang.Object
org.pgcodekeeper.core.database.base.formatter.AbstractFormatter
org.pgcodekeeper.core.database.ch.formatter.ChFormatter
- All Implemented Interfaces:
IFormatter
ClickHouse-specific SQL formatter implementation.
Handles formatting of ClickHouse queries and DDL statements with dialect-specific rules.
-
Constructor Summary
ConstructorsConstructorDescriptionChFormatter(String source, int offset, int length, IFormatConfiguration config) Constructs a new ClickHouse formatter instance. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringGets the list of formatting changes to apply to the SQL text.Methods inherited from class org.pgcodekeeper.core.database.base.formatter.AbstractFormatter
formatText
-
Constructor Details
-
ChFormatter
Constructs a new ClickHouse formatter instance.- Parameters:
source- The source SQL text to formatoffset- Starting offset in the source textlength- Length of text to formatconfig- Formatting configuration options
-
-
Method Details
-
getFormatItems
Description copied from interface:IFormatterGets the list of formatting changes to apply to the SQL text. Parses the SQL and applies formatting rules based on the configuration.- Returns:
- List of FormatItem objects representing formatting changes
-
formatSql
-