Package de.fhg.igd.mongomvcc

Examples of de.fhg.igd.mongomvcc.VDatabase.connect()


   */
  public static void main(String[] args) {
    // 1. Connect to a database
    VFactory factory = new MongoDBVFactory();
    VDatabase db = factory.createDatabase();
    db.connect("mongomvcc-five-minutes-tutorial");
   
    // Checkout the "master" branch
    VBranch master = db.checkout(VConstants.MASTER);
   
    // 2. Put something into the index
View Full Code Here


   * Before all unit tests run, make sure the database is clean
   */
  @BeforeClass
  public static void setUpClass() {
    VDatabase db = _factory.createDatabase();
    db.connect("mvcctest");
    db.drop();
  }
 
  /**
   * Setup test database
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.