Class InvalidFormattedSqlPatternsForOssUtil

java.lang.Object
liquibase.parser.core.formattedsql.InvalidFormattedSqlPatternsForOssUtil

public class InvalidFormattedSqlPatternsForOssUtil extends Object
Utility class for handling invalid formatted SQL patterns for OSS distribution.
  • Field Details

    • ROLLBACK_SQL_FILE_REGEX

      protected static final String ROLLBACK_SQL_FILE_REGEX
    • ROLLBACK_SQL_FILE_PATTERN

      protected static final Pattern ROLLBACK_SQL_FILE_PATTERN
    • TAG_DATABASE_REGEX

      protected static final String TAG_DATABASE_REGEX
    • TAG_DATABASE_PATTERN

      protected static final Pattern TAG_DATABASE_PATTERN
    • INCLUDE_REGEX

      protected static final String INCLUDE_REGEX
    • INCLUDE_PATTERN

      protected static final Pattern INCLUDE_PATTERN
    • INCLUDE_ALL_REGEX

      protected static final String INCLUDE_ALL_REGEX
    • INCLUDE_ALL_PATTERN

      protected static final Pattern INCLUDE_ALL_PATTERN
  • Method Details

    • interruptIfIsProCommandAndNoLicenseIsPresent

      public static void interruptIfIsProCommandAndNoLicenseIsPresent(String line) throws ChangeLogParseException
      Raise an exception if a Pro-only command is detected and no valid Liquibase license is present. This method checks the given line for specific patterns associated with Pro-only commands and, if matched, informs the user that the command is not supported in the Liquibase Community Edition.
      Parameters:
      line - a string representing the command or input line to be checked for Pro-only patterns
      Throws:
      ChangeLogParseException