Package org.h2.tools
Class ConvertTraceFile
- java.lang.Object
-
- org.h2.util.Tool
-
- org.h2.tools.ConvertTraceFile
-
public class ConvertTraceFile extends org.h2.util.ToolConverts a .trace.db file to a SQL script and Java source code. SQL statement statistics are listed as well.
-
-
Constructor Summary
Constructors Constructor Description ConvertTraceFile()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String... args)Options are case sensitive.voidrunTool(java.lang.String... args)Run the tool with the given output stream and arguments.
-
-
-
Method Detail
-
main
public static void main(java.lang.String... args) throws java.sql.SQLExceptionOptions are case sensitive.Supported options [-help] or [-?] Print the list of options [-traceFile <file>] The trace file name (default: test.trace.db) [-script <file>] The script file name (default: test.sql) [-javaClass <file>] The Java directory and class file name (default: Test) - Parameters:
args- the command line arguments- Throws:
java.sql.SQLException- on failure
-
runTool
public void runTool(java.lang.String... args) throws java.sql.SQLExceptionDescription copied from class:org.h2.util.ToolRun the tool with the given output stream and arguments.- Specified by:
runToolin classorg.h2.util.Tool- Parameters:
args- the argument list- Throws:
java.sql.SQLException- on failure
-
-