RxSimpleNoSQL alternatives and similar packages
Based on the "ORM" category.
Alternatively, view RxSimpleNoSQL alternatives based on common mentions on social networks and blogs.
-
greenDAO
greenDAO is a light & fast ORM solution for Android that maps objects to SQLite databases. -
realm-java
Realm is a mobile database: a replacement for SQLite & ORMs -
LitePal
An Android library that makes developers use SQLite database extremely easy. -
ActiveAndroid
Active record style SQLite persistence for Android -
DBFlow
A blazing fast, powerful, and very simple ORM android database library that writes database code for you. -
sqlbrite
A lightweight wrapper around SQLiteOpenHelper which introduces reactive stream semantics to SQL operations. -
android-database-sqlcipher
Android SQLite API based on SQLCipher -
requery
requery - modern SQL based query & persistence for Java / Kotlin / Android -
android-sqlite-asset-helper
An Android helper class to manage database creation and version management using an application's raw asset files -
ormlite
ORMLite Android functionality used in conjunction with ormlite-core -
couchbase-lite-android
Lightweight, embedded, syncable NoSQL database engine for Android. -
sprinkles
Sprinkles is a boiler-plate-reduction-library for dealing with databases in android applications -
SimpleNoSQL
A simple NoSQL client for Android. Meant as a document store using key/value pairs and some rudimentary querying. Useful for avoiding the hassle of SQL code. -
orman
lightweight and minimalist ORM for Java/Android. works with SQLite & MySQL. (not actively maintained) -
LiteOrm
LiteGo is a Java-based asynchronous concurrency library. It has a smart executor, which can be freely set the maximum number of concurrent at same time , and the number of threads in waiting queue. It can also set waiting policies and overload strategies. -
Android-AnnotatedSQL
Android library for auto generating SQL schema and Content provider -
ormdroid
ORMDroid is a simple ORM persistence framework for your Android applications. -
Kripton Persistence Library
A Java/Kotlin library for Android platform, to manage bean's persistence in SQLite, SharedPreferences, JSON, XML, Properties, Yaml, CBOR. -
SqliteMagic
Compile time processed, annotation driven, no reflection SQLite database layer for Android -
RestorableSQLiteDatabase
A wrapper around Android's SQLiteDatabase with restoring capability -
AndroidQueryORM
AndroidQuery is an Android ORM for SQLite and ContentProvider which focuses on easy of use and performances thanks to annotation processing and code generation -
Cupboard
Simple persistence that gets out of your way and is easy to add to your existing code base
Appwrite - The open-source backend cloud platform
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of RxSimpleNoSQL or a related project?
README
RxSimpleNoSQL
Reactive extensions for SimpleNoSQL. Manipulate entities using Observable
s
and Completable
s.
Examples
Suppose we have the following entity we want to manipulate:
class SampleBean implements Entity {
private String name;
private String id;
private Map<String, String> mapping;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
@Override
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public Map<String, String> getMapping() {
return mapping;
}
public void setMapping(Map<String, String> mapping) {
this.mapping = mapping;
}
}
We first start creating a bucket:
Bucket<SampleBean> bucket = new Bucket<>(context, SampleBean.class, "bucketId");
Save
Single
SampleBean entity = new SampleBean();
entity.setId("1");
entity.setName("Colin");
Map<String, Integer> birthday = new HashMap<String, Integer>();
birthday.put("day", 17);
birthday.put("month", 2);
birthday.put("year", 1982);
entity.setMapping(birthday);
bucket.newQuery()
.save(entity)
.subscribe();
Multiple
SampleBean entity2 = new SampleBean();
entity2.setId("2");
entity2.setName("Santiago");
SampleBean entity3 = new SampleBean();
entity3.setId("3");
entity3.setName("Xmartlabs");
bucket.newQuery()
.save(Arrays.asList(entity2, entity3))
.subscribe();
Retrieve
Single
bucket.newQuery()
.entityId("entityId")
.retrieve()
.subscribe(sampleBean -> System.out.println("Name: %s", sampleBean.getName()));
Multiple
bucket.newQuery()
.filter(sampleBean -> sampleBean.getName().startsWith("S"))
.retrieve()
.subscribe(sampleBean -> System.out.println("Name: %s", sampleBean.getName()));
All
bucket.newQuery()
.retrieve()
.subscribe(sampleBean -> System.out.println("Name: %s", sampleBean.getName()));
Delete
Single
bucket.newQuery()
.entityId("entityId")
.delete()
.subscribe();
Multiple
Currently, SimpleNoSQL does not support the usage of filter
for the delete
operation.
There's an issue opened.
Nevertheless, this functionality can be achieved by first retrieving the entities to be deleted and then performing the actual delete
operation individually:
Observable<SampleBean> itemsToDelete = bucket.newQuery()
.filter(sampleBean -> sampleBean.getName().startsWith("S"))
.retrieve()
Completable deleteCompletable = Completable.concat(
itemsToDelete
.map(item -> bucket.newQuery()
.entityId(item.getId()))
.delete());
All
bucket.newQuery()
.delete()
.subscribe();
Sorting
As SimpleNoSQL sorts the results in memory,
you can carry this out the same way with Observable#toSortedList
.
Development
As SimpleNoSQL, this project still isn't stable (the API can change at any time). You can use it with Gradle and JitPack:
repositories {
maven { url "https://jitpack.io" }
}
Then adding the dependency:
implementation 'com.github.xmartlabs:RxSimpleNoSQL:-SNAPSHOT'
RxSimpleNoSQL requires at minimum Java 7 or Android 2.2.
Build
To build:
git clone https://github.com/xmartlabs/RxSimpleNoSQL.git
cd RxSimpleNoSQL/
./gradlew build
License
Copyright 2016 Xmartlabs SRL.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*Note that all licence references and agreements mentioned in the RxSimpleNoSQL README section above
are relevant to that project's source code only.