/** * {@inheritDoc} * @see net.sf.hajdbc.pool.PoolProvider#create() */ @Override public synchronized SqlJetDb create() throws SqlJetException { boolean exists = this.file.exists(); SqlJetDb db = SqlJetDb.open(this.file, true); if (!exists) { db.getOptions().setAutovacuum(true); db.getOptions().setIncrementalVacuum(true); } return db; }
int mode = readAutovacuumMode(value); getOptions().setAutovacuum(mode == 1); getOptions().setIncrementalVacuum(mode == 2); } else if ("cache_size".equals(name)) { if (value instanceof Number) {