Package org.testcontainers.jdbc.ext
Class ScriptUtils
java.lang.Object
org.testcontainers.jdbc.ext.ScriptUtils
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.Default end delimiter for block comments within SQL scripts.static final StringDeprecated.Default start delimiter for block comments within SQL scripts.static final StringDeprecated.Default prefix for line comments within SQL scripts.static final StringDeprecated.Default statement separator within SQL scripts.static final StringDeprecated.Fallback statement separator within SQL scripts. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancontainsSqlScriptDelimiters(String script, String delim) Deprecated.Needed only to keep binary compatibility for this internal API.static voidexecuteSqlScript(Connection connection, String scriptPath, String script) Deprecated.Needed only to keep binary compatibility for this internal API.static voidexecuteSqlScript(Connection connection, String scriptPath, String script, boolean continueOnError, boolean ignoreFailedDrops, String commentPrefix, String separator, String blockCommentStartDelimiter, String blockCommentEndDelimiter) Deprecated.Needed only to keep binary compatibility for this internal API.static voidsplitSqlScript(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.
-
Field Details
-
DEFAULT_STATEMENT_SEPARATOR
Deprecated.Default statement separator within SQL scripts.- See Also:
-
FALLBACK_STATEMENT_SEPARATOR
Deprecated.Fallback statement separator within SQL scripts.Used if neither a custom defined separator nor the
DEFAULT_STATEMENT_SEPARATORis present in a given script.- See Also:
-
DEFAULT_COMMENT_PREFIX
Deprecated.Default prefix for line comments within SQL scripts.- See Also:
-
DEFAULT_BLOCK_COMMENT_START_DELIMITER
Deprecated.Default start delimiter for block comments within SQL scripts.- See Also:
-
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
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
-