Transactions

To begin transaction just call:

ReActiveAndroid.getDatabase(AppDatabase.class).beginTransaction();

After completing all the operations, you must finish the transaction:

ReActiveAndroid.getDatabase(AppDatabase.class).getWritableDatabase().setTransactionSuccessful();
ReActiveAndroid.getDatabase(AppDatabase.class).endTransaction();

results matching ""

    No results matching ""