com.holonplatform.jdbc.internal

## Class SQLScriptUtils

- java.lang.Object
- - com.holonplatform.jdbc.internal.SQLScriptUtils

-     public class SQLScriptUtils
      extends Object

  Utility class to execute a SQL script.
  Since:
    5.1.0

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SQLScriptUtils()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `executeSqlScript(Connection connection, String script)` Execute given SQL script using provided `Connection`.

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SQLScriptUtils

          public SQLScriptUtils()

  - ### Method Detail

    - #### executeSqlScript

          public static void executeSqlScript(Connection connection,
                                              String script)
                                       throws IOException

      Execute given SQL script using provided `Connection`.
      Parameters:
        `connection` - Connection on which to execute the script (not null)
        `script` - SQL script not null
      Throws:
        `IOException` - If an execution error occurred

Copyright © 2019 The Holon Platform. All rights reserved.