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.