Realm Guide: From Zero to Give Up

Curated list of realm learning resources

Guowei Lv

1 minute read

You know nothing about realm, then watch this video first ->

Now you should know the basic basics, then take a look at the official doc.

You think you know it all until you try to combine with RxJava.

Now you are super puzzled, look at some examples with full source code.

Finally you realize that you have to do all this in clean architecture and decided to give up by turning Realm into a NoSQL version SQLite.

return Observable.fromCallable {
    Realm.getDefaultInstance().use { realm ->
        realm.copyFromRealm(
            realm.where(ItemRealm::class.java)
                 .equalTo(ItemRealm.FIELD_SEND, false).findAll())
    }
}.subscribeOn(Schedulers.io());

~THE END~

comments powered by Disqus