java.lang.Object
de.funfried.netbeans.plugins.external.formatter.sql.sqlformatter.SQLFormatterWrapper

public final class SQLFormatterWrapper extends Object
Delegation class to the Vertical Blank SQL formatter implementation.
Author:
bahlef
  • Method Summary

    Modifier and Type
    Method
    Description
    format(String code, com.github.vertical_blank.sqlformatter.languages.Dialect dialect, com.github.vertical_blank.sqlformatter.core.FormatConfig formatConfig)
    Formats the given code with the given configurations and returns the formatted code.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 given code with the given configurations and returns the formatted code.
      Parameters:
      code - the unformatted SQL code
      dialect - the Dialect to use
      formatConfig - Formatting options as a FormatConfig object
      Returns:
      the formatted SQL code
      Throws:
      FormattingFailedException - if the external formatter failed to format the given code