Package com.mongodb

Examples of com.mongodb.DB.eval()


  public final Fixture runInDatabaseQueryAndCleanupDatabases(
  final String database, final String query, final boolean cleanupDB) {
    DB srcDB = getDB(src, database);
    DB tgtDB = getDB(tgt, database);
    Number srcResult = (Number) srcDB.eval(query);
    Number tgtResult = (Number) tgtDB.eval(query);
    if (cleanupDB) {
      cleanupDBs(srcDB, tgtDB);
    }
    Result result = new Result(srcResult.longValue(), tgtResult.longValue());
    return new SetFixture(Collections.singletonList(result));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.