Class ScriptUtils

java.lang.Object
org.testcontainers.jdbc.ext.ScriptUtils

public abstract class ScriptUtils extends Object
Deprecated.
Needed only to keep binary compatibility for this internal API. Consider using database-agnostic ScriptUtils
Wrapper for database-agnostic ScriptUtils
See Also:
  • ScriptUtils
  • Field Details

    • DEFAULT_STATEMENT_SEPARATOR

      public static final String DEFAULT_STATEMENT_SEPARATOR
      Deprecated.
      Default statement separator within SQL scripts.
      See Also:
    • FALLBACK_STATEMENT_SEPARATOR

      public static final String FALLBACK_STATEMENT_SEPARATOR
      Deprecated.
      Fallback statement separator within SQL scripts.

      Used if neither a custom defined separator nor the DEFAULT_STATEMENT_SEPARATOR is present in a given script.

      See Also:
    • DEFAULT_COMMENT_PREFIX

      public static final String DEFAULT_COMMENT_PREFIX
      Deprecated.
      Default prefix for line comments within SQL scripts.
      See Also:
    • DEFAULT_BLOCK_COMMENT_START_DELIMITER

      public static final String DEFAULT_BLOCK_COMMENT_START_DELIMITER
      Deprecated.
      Default start delimiter for block comments within SQL scripts.
      See Also:
    • DEFAULT_BLOCK_COMMENT_END_DELIMITER

      public static final String DEFAULT_BLOCK_COMMENT_END_DELIMITER
      Deprecated.
      Default end delimiter for block comments within SQL scripts.
      See Also:
  • Method Details

    • splitSqlScript

      public static void splitSqlScript(String resource, String script, String separator, String commentPrefix, String blockCommentStartDelimiter, String blockCommentEndDelimiter, List<String> statements)
      Deprecated.
      Needed only to keep binary compatibility for this internal API. Consider using database-agnostic ScriptUtils
      See Also:
      • ScriptUtils
    • containsSqlScriptDelimiters

      public static boolean containsSqlScriptDelimiters(String script, String delim)
      Deprecated.
      Needed only to keep binary compatibility for this internal API. Consider using database-agnostic ScriptUtils
      See Also:
      • ScriptUtils
    • executeSqlScript

      public static void executeSqlScript(Connection connection, String scriptPath, String script) throws ScriptException
      Deprecated.
      Needed only to keep binary compatibility for this internal API. Consider using database-agnostic ScriptUtils
      Throws:
      ScriptException
      See Also:
      • ScriptUtils
    • executeSqlScript

      public static void executeSqlScript(Connection connection, String scriptPath, String script, boolean continueOnError, boolean ignoreFailedDrops, String commentPrefix, String separator, String blockCommentStartDelimiter, String blockCommentEndDelimiter) throws ScriptException
      Deprecated.
      Needed only to keep binary compatibility for this internal API. Consider using database-agnostic ScriptUtils
      Throws:
      ScriptException
      See Also:
      • ScriptUtils