Examples of CouchDatabase


Examples of com.cedarsoft.couchdb.CouchDatabase

    } catch ( Exception ignore ) {
    }

    assertTrue( server.createDatabase( dbName ) );

    CouchDatabase couchDatabase = getCouchDatabaseObject( dbName );

    publishViews( couchDatabase );

    this.dbs.add( couchDatabase );
    return couchDatabase;
View Full Code Here

Examples of com.cedarsoft.couchdb.CouchDatabase

      filters = new ClientFilter[]{new HTTPBasicAuthFilter( username, password )};
    } else {
      filters = new ClientFilter[0];
    }

    return new CouchDatabase( uri, dbName, filters );
  }
View Full Code Here

Examples of com.couchace.core.api.CouchDatabase

    if (runningCompact.compareAndSet(false, true) == false) {
      return;
    }

    try {
      CouchDatabase couchDatabase = couchServer.database();

      CouchUtils.compactDatabase(couchDatabase);
      CouchUtils.compactDesigns(couchDatabase, designNames);
      CouchUtils.cleanupViews(couchDatabase);
View Full Code Here

Examples of com.couchace.core.api.CouchDatabase

    return super.database(databaseName);
  }

  @PostConstruct
  public void validateDatabases() throws IOException {
    CouchDatabase database = database();
    CouchUtils.createDatabase(database, new TimeUuidIdGenerator(), "/push-server/json/account.json");
    CouchUtils.validateDesign(database, designNames, prefix, suffix);
  }
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.