Package com.mckoi.tools
Class JDBCScriptTool
java.lang.Object
com.mckoi.tools.JDBCScriptTool
A tool that reads an input SQL script and output information for the
result either to an output file or through System.out. This is a useful
command line tool that can be used for regression testing and database
diagnostics (as well as for basic SQL scripting needs).
This class is able to output result sets in textual form.
- Author:
- Tobias Downer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionevaluate
(Connection connection, String url, String username, String password) Evaluates the input script and outputs the result to the output stream.static void
The application start point.
-
Constructor Details
-
JDBCScriptTool
Constructs the tool.
-
-
Method Details
-
evaluate
public Connection[] evaluate(Connection connection, String url, String username, String password) throws IOException Evaluates the input script and outputs the result to the output stream. Returns the list of Connections established.- Throws:
IOException
-
main
The application start point.
-