private void executeDrop(@Nullable final ClientSession clientSession) { executor.execute(new DropDatabaseOperation(name, getWriteConcern()), readConcern, clientSession); }
/** * Drops this database. Removes all data on disk. Use with caution. * * @throws MongoException if the operation failed * @mongodb.driver.manual reference/command/dropDatabase/ Drop Database */ public void dropDatabase() { try { getExecutor().execute(new DropDatabaseOperation(getName(), getWriteConcern()), getReadConcern()); } catch (MongoWriteConcernException e) { throw createWriteConcernException(e); } }
private void executeDrop(@Nullable final ClientSession clientSession) { executor.execute(new DropDatabaseOperation(name, getWriteConcern()), readConcern, clientSession); }
private void executeDrop(@Nullable final ClientSession clientSession) { executor.execute(new DropDatabaseOperation(name, getWriteConcern()), readConcern, clientSession); }
/** * Drops this database. Removes all data on disk. Use with caution. * * @throws MongoException if the operation failed * @mongodb.driver.manual reference/command/dropDatabase/ Drop Database */ public void dropDatabase() { try { getExecutor().execute(new DropDatabaseOperation(getName(), getWriteConcern()), getReadConcern()); } catch (MongoWriteConcernException e) { throw createWriteConcernException(e); } }