Is CouchDB on Android needed for Users of App?

Deadly 提交于 2019-12-25 08:14:46

问题


Im Trying to use CouchDb as a NoSQL database and my main purpose is to create an application on android which use couchDB instead of sqlite! And I want to use this database locally , so with no server connection!

I have seen that you need to buy this on android market to use it! I'm wondering if I'm going to use this should all the users of my application by couchDB first in android market to be able to use my application?

or somehow it will be included? How does this thing work? Is there anyway that I can skip buying it and include this technology in my own application?

And please let me know if there is some other NoSQL that I can use on android!

Thanks for your help in advance.


回答1:


I don't think you need to purchse it to use it, as it is an open source library covered by the Apache license.

Speaking of NoSQL I've successfully used both NeoDatis and db4o in the Android environment. Both of these libraries are object databases and are surprisingly fast and easy to use. In fact, the claim is that they are faster than ORM/Relation Databases. I think they are a great fit for a low-user (1 user) low bandwidth environment.

Here's an example of db4o in Android:

http://java.dzone.com/articles/using-db4o-android-application

By the way, db4o is open source, but GPL, which makes it a difficult license to integrate into non-GPL products. They also have a pay-license version.




回答2:


You probably want to look at https://github.com/couchbaselabs/TouchDB-Android

This is an embeddable Java library that wraps SQLite, so it is fast, native, and lightweight.

It syncs with Apache CouchDB so it has the offline mode you want. It also has a REST/JSON api very similar to CouchDB.

Enjoy!



来源:https://stackoverflow.com/questions/10335947/is-couchdb-on-android-needed-for-users-of-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!