Class PrintH2DatabaseSchema

java.lang.Object
edu.pdx.cs.joy.jdbc.PrintH2DatabaseSchema

public class PrintH2DatabaseSchema extends Object
A command-line program that uses the JDBC DatabaseMetaData API to print information about the tables in an H2 database file.
  • Constructor Details

  • Method Details

    • main

      public static void main(String[] args) throws SQLException
      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