Class PgFormatter
java.lang.Object
org.pgcodekeeper.core.formatter.AbstractFormatter
org.pgcodekeeper.core.formatter.pg.PgFormatter
PostgreSQL-specific SQL formatter implementation.
Handles formatting of PostgreSQL functions and SQL statements with PostgreSQL-specific syntax rules.
-
Constructor Summary
ConstructorsConstructorDescriptionPgFormatter(String source, int start, int stop, FormatConfiguration config) Constructs a new PostgreSQL formatter instance. -
Method Summary
Modifier and TypeMethodDescriptionGets the list of formatting changes to apply to the SQL text.
-
Constructor Details
-
PgFormatter
Constructs a new PostgreSQL formatter instance.- Parameters:
source- The source SQL text to formatstart- The starting offset in the source textstop- The ending offset in the source textconfig- The formatting configuration
-
-
Method Details
-
getFormatItems
Gets 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
-