Class SQLFormatterWrapper
java.lang.Object
de.funfried.netbeans.plugins.external.formatter.sql.sqlformatter.SQLFormatterWrapper
Delegation class to the Vertical Blank SQL formatter implementation.
- Author:
- bahlef
-
Method Summary
-
Method Details
-
format
@CheckForNull public String format(String code, com.github.vertical_blank.sqlformatter.languages.Dialect dialect, com.github.vertical_blank.sqlformatter.core.FormatConfig formatConfig) throws FormattingFailedException Formats the givencode
with the given configurations and returns the formatted code.- Parameters:
code
- the unformatted SQL codedialect
- theDialect
to useformatConfig
- Formatting options as aFormatConfig
object- Returns:
- the formatted SQL code
- Throws:
FormattingFailedException
- if the external formatter failed to format the given code
-