Package org.jcouchdb.db

Examples of org.jcouchdb.db.Database


  }

  public void publishViews( @Nonnull String dbName ) throws URISyntaxException, IOException {
    CouchDBUpdater updater = new CouchDBUpdater();
    updater.setCreateDatabase( false );
    updater.setDatabase( new Database( server, dbName ) );

    try {
      URL resource = getViewResource();
      if ( resource == null ) {
        return;
View Full Code Here


  }

  public void publishViews( @NotNull @NonNls String dbName ) throws URISyntaxException, IOException {
    CouchDBUpdater updater = new CouchDBUpdater();
    updater.setCreateDatabase( false );
    updater.setDatabase( new Database( server, dbName ) );

    try {
      URL resource = getViewResource();
      if ( resource == null ) {
        return;
View Full Code Here

  @Nonnull
  public Database createInternalDb() {
    //    return new Database( database.getDbRoot().getUriBuilder().replacePath( "" ).build().toString(), database.getDbName() );
    URI uri = database.getDbRoot().getURI();
    Database internalDb = new Database( uri.getHost(), uri.getPort(), database.getDbName() );

    UsernamePasswordCredentials credentials = extractCredentials( database.getClientFilters() );
    if ( credentials != null ) {
      internalDb.getServer().setCredentials( AuthScope.ANY, credentials );
    }
    return internalDb;
  }
View Full Code Here

TOP

Related Classes of org.jcouchdb.db.Database

Copyright © 2018 www.massapicom. 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.