问题
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