git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@89
f203690c-595d-4dc9-a70b-
905162fa7fd2
columns.add(col);
db.createTable("test", columns);
}
+
+ private static void dumpDatabase(Database mdb) throws Exception {
+ System.out.println("DATABASE:");
+
+ for(String tableName : mdb.getTableNames()) {
+ dumpTable(mdb.getTable(tableName));
+ }
+ }
+
+ private static void dumpTable(Table table) throws Exception {
+ System.out.println("TABLE: " + table.getName());
+ table.reset();
+ Object row = null;
+ while((row = table.getNextRow()) != null) {
+ System.out.println(row);
+ }
+ }
}