/** * Load driver, and create database, schema and data. * * @throws SchemaCrawlerException On an exception */ public void startDatabase(final boolean silent) throws SchemaCrawlerException { LOGGER.log(Level.FINE, toString() + " - Setting up database"); // Attempt to delete the database files deleteServerFiles(); // Start the server org.hsqldb.server.Server.main( new String[] { "-database.0", serverFileStem, "-dbname.0", "schemacrawler", "-silent", Boolean.toString(silent), "-trace", Boolean.toString(!silent), "-no_system_exit", "true" }); createDatabase("jdbc:hsqldb:hsql://localhost/schemacrawler"); }
public static void main(String[] args) throws Exception { Server.main(new String[] {"--database.0", "file:./db/sample", "--dbname.0", "sample"}); }