CouchDB Java 客户端
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/17034078/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
CouchDB Java client
提问by Itay Maman
This wiki page, http://wiki.apache.org/couchdb/Getting_started_with_Java, lists several CouchDB Java clients. I wonder if any of the clients mentioned is significantly more dominant/popular/better/supported than the others.
这个 wiki 页面http://wiki.apache.org/couchdb/Getting_started_with_Java列出了几个 CouchDB Java 客户端。我想知道是否有任何提到的客户比其他客户更具统治力/受欢迎/更好/支持。
回答by Tim Perry
I think Ektorpis pretty much the clear leader at the mo. I've certainly been very happy with it, and I've never seen anybody using anything else.
我认为Ektorp几乎是当前的明确领导者。我当然对它非常满意,而且我从未见过有人使用过其他任何东西。
In addition, as a quick metric, Ektorp is clearly far more actively maintained than any of the others: currently the last commit on Ektorp was 5 hoursago, vs 4 years for CouchDB4j, a little over 1 year for jcouchdb and 2 years for jRelax.
此外,作为一个快速指标,Ektorp 显然比其他任何一个都更积极维护:目前 Ektorp 的最后一次提交是 5小时前,而 CouchDB4j 为 4 年,jcouchdb 为 1 年多一点,jRelax 为 2 年.
回答by Mike Rhodes
Lightcouchseems to be most active nowadays. Ektorpis also still active, however.
Lightcouch 现在似乎最活跃。然而,Ektorp也仍然活跃。
Each has its own strengths, however, so I'd pick based on what level you want to be abstracted from CouchDB's HTTP API. Myself, I'd use Lightcouch.
然而,每个都有自己的优势,所以我会根据您希望从 CouchDB 的 HTTP API 中抽象出的级别来选择。我自己,我会使用 Lightcouch。
回答by MihaiD
I tried CouchDB4j and it has only a few methods implemented. They are not so well documented and you might find the complete lack of code example implementations very frustrating as it happened to me.That is why I would not recommend it. To give you a feel about this API, I tried attaching a certain file to an already existing document from the database and it does not support this kind of process.
我尝试了 CouchDB4j,它只实现了几个方法。它们没有很好的文档记录,你可能会发现完全缺乏代码示例实现非常令人沮丧,因为它发生在我身上。这就是我不推荐它的原因。为了让您感受一下这个 API,我尝试将某个文件附加到数据库中的现有文档,但它不支持这种过程。
I will now give Ektorp a shot and will come back with an edit as I go along. Looking at the recent activity between these two it is a big difference: Ektorp has been last updated a month ago vs CouchDB4j having been updated 3 years ago at the moment when this comment was written. Hope this will help.
我现在将给 Ektorp 一个机会,并在我进行的过程中回来进行编辑。看看这两者之间的最近活动,就会发现有很大的不同:Ektorp 上次更新是一个月前,而 CouchDB4j 是 3 年前在撰写此评论时更新的。希望这会有所帮助。
EDIT: Ektorp is definitely the way to go. It allows you to build your own kind of entry in the database, with as many and variate fields as you want. It also allows easy manipulation of attachments. For me, it did the trick.
编辑: Ektorp 绝对是要走的路。它允许您在数据库中构建您自己的条目类型,并根据需要使用尽可能多的变量字段。它还允许轻松操作附件。对我来说,它成功了。