return CouchDatabase.create( client, uri, dbName );
}
public void publishViews( @Nonnull CouchDatabase couchDatabase ) throws IOException, ActionFailedException {
try {
DesignDocumentsProvider provider = getDesignDocumentsProvider();
if ( provider == null ) {
return;
}
List<? extends DesignDocument> designDocuments = provider.getDesignDocuments();
if ( designDocuments.isEmpty() ) {
return;
}
DesignDocumentsUpdateService designDocumentsUpdateService = new DesignDocumentsUpdateService( couchDatabase );