O'Reilly logo

Reactive Android Programming by Tadas Subonis

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Configuring StorIO

A typical reactive call to persist data in StorIO looks like this:

StorIOSQLite storIOSQLite = ...;storIOSQLite        .put()        .objects(entitiesToPersist)        .prepare()        .asRxSingle()        .subscribe();

However, before we can start using this, we need to figure out a few things:

  • How to map SQL data to domain classes and vice versa?
  • How to acquire StorIOSQLite interface?

Let's start with the data mapping, which will be later plugged in to the StorIOSQLite interface.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required