我正在研究使用Ektorp框架與CouchDB進行通信的Java應用程序。我用下面的代碼來創建一個新的CouchDbInstance:Ektorp CouchDB測試連接
HttpClient httpClient = new StdHttpClient.Builder()
.host("localhost")
.port("5984")
.username("")
.password("");
/* no user name and password required because, its admin party */
CouchDbInstance couchDbInstance = new StdCouchDbInstance(httpClient);
現在我想在我創建/修改等文件來測試到CouchDB的連接。沒有測試連接的方法。你有給我的小費嗎?
CouchDbInstance不是可能嗎? – konze 2013-03-17 15:53:10
CouchDbInstance#checkIfDbExists沒有副作用 – 2013-03-17 18:57:23