Interface IFormatter
- All Known Implementing Classes:
AbstractFormatter,ChFormatter,MsFormatter,PgFormatter
public interface IFormatter
Interface for SQL formatter implementations.
Provides common functionality and structure for database-specific formatters.
-
Method Summary
Modifier and TypeMethodDescriptionFormats the source text according to configuration and database type.Gets the list of formatting changes to apply to the SQL text.
-
Method Details
-
getFormatItems
List<FormatItem> 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
-
formatText
String formatText()Formats the source text according to configuration and database type.- Returns:
- Formatted SQL string
-