Tabnine Logo
JdbcTestUtils.splitSqlScript
Code IndexAdd Tabnine to your IDE (free)

How to use
splitSqlScript
method
in
org.springframework.test.jdbc.JdbcTestUtils

Best Java code snippets using org.springframework.test.jdbc.JdbcTestUtils.splitSqlScript (Showing top 2 results out of 315)

origin: scottysinclair/barleydb

public static void executeScript(Connection con, String script, boolean continueOnError) throws Exception {
  LineNumberReader in = new LineNumberReader(new StringReader( script ));
  List<String> statements = new LinkedList<>();
  JdbcTestUtils.splitSqlScript(JdbcTestUtils.readScript(in), ';', statements);
  if (continueOnError){
    con.setAutoCommit(true);
origin: com.butor/butor-test

JdbcTestUtils.splitSqlScript(sqlData, ';', scriptlines);
for (String sqlOri : scriptlines) {
  try {
org.springframework.test.jdbcJdbcTestUtilssplitSqlScript

Javadoc

Split an SQL script into separate statements delimited by the provided delimiter character. Each individual statement will be added to the provided List.

Within a statement, " --" will be used as the comment prefix; any text beginning with the comment prefix and extending to the end of the line will be omitted from the statement. In addition, multiple adjacent whitespace characters will be collapsed into a single space.

Popular methods of JdbcTestUtils

  • countRowsInTable
    Count the rows in the given table.
  • deleteFromTables
    Delete all rows from the specified tables.
  • deleteFromTableWhere
    Delete rows from the given table, using the provided WHERE clause.If the provided WHERE clause conta
  • dropTables
    Drop the specified tables.
  • countRowsInTableWhere
    Count the rows in the given table, using the provided WHERE clause.If the provided WHERE clause cont
  • readScript
    Read a script from the provided LineNumberReader, using the supplied comment prefix, and build a Str
  • executeSqlScript
    Execute the given SQL script.The script will typically be loaded from the classpath. There should be

Popular in Java

  • Making http post requests using okhttp
  • setRequestProperty (URLConnection)
  • startActivity (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Permission (java.security)
    Legacy security code; do not use.
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Reference (javax.naming)
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • JButton (javax.swing)
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now