Package edu.pdx.cs.joy.jdbc
Class PrintH2DatabaseSchema
java.lang.Object
edu.pdx.cs.joy.jdbc.PrintH2DatabaseSchema
A command-line program that uses the JDBC DatabaseMetaData API to print
information about the tables in an H2 database file.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PrintH2DatabaseSchema
public PrintH2DatabaseSchema()
-
-
Method Details
-
main
Main method that takes a database file path and prints the schema.- Parameters:
args- command line arguments where args[0] is the path to the H2 database file- Throws:
SQLException- if a database error occurs
-