| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static ResultSet | Returns: the last result setthe connection to a database conn, Reader the reader reader)Executes the SQL commands read from the reader against a database. |
| public static void | execute(String
the database URL url, String the user name user, String the password password, String the script file fileName, Charset the character set or null for UTF-8 charset, boolean if execution should be continued if an error
occurs continueOnError)Executes the SQL commands in a script file against a database. |
| public static void | |
| private void | |
| private void | |
| pack-priv void | process(String
the database URL url, String the user name user, String the password password, String the script file fileName, Charset the character set or null for UTF-8 charset, boolean if execution should be continued if an error
occurs continueOnError)Executes the SQL commands in a script file against a database. |
| private static void | |
| public void | runTool(String...
the command line arguments args)Implements abstract org. Executes the contents of a SQL script file against a database. |
| checkResults | back to summary |
|---|---|
| private boolean checkResults | |
| showResults | back to summary |
|---|---|
| private boolean showResults | |
| RunScript | back to summary |
|---|---|
| public RunScript() | |
| execute | back to summary |
|---|---|
| public static ResultSet execute(Connection conn, Reader reader) throws SQLException Executes the SQL commands read from the reader against a database.
| |
| execute | back to summary |
|---|---|
| public static void execute(String url, String user, String password, String fileName, Charset charset, boolean continueOnError) throws SQLException Executes the SQL commands in a script file against a database. | |
| main | back to summary | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| public static void main(String... args) throws SQLException Options are case sensitive.
| |||||||||||||||||||||
| process | back to summary |
|---|---|
| private void process(Connection conn, String fileName, boolean continueOnError, Charset charset) throws SQLException, IOException | |
| process | back to summary |
|---|---|
| private void process(Connection conn, boolean continueOnError, String path, Reader reader, Charset charset) throws SQLException, IOException | |
| process | back to summary |
|---|---|
| pack-priv void process(String url, String user, String password, String fileName, Charset charset, boolean continueOnError) throws SQLException Executes the SQL commands in a script file against a database. | |
| processRunscript | back to summary |
|---|---|
| private static void processRunscript(String url, String user, String password, String fileName, String options) throws SQLException | |
| runTool | back to summary |
|---|---|
| public void runTool(String... args) throws SQLException Implements abstract org. Executes the contents of a SQL script file against a database. This tool is usually used to create a database from script. It can also be used to analyze performance problems by running the tool using Java profiler settings such as: java -Xrunhprof:cpu=samples,depth=16 ...To include local files when using remote databases, use the special syntax: @INCLUDE fileNameThis syntax is only supported by this tool. Embedded RUNSCRIPT SQL statements will be executed by the database.
| |