``` DatabaseSource source = new DatabaseSource(thi...
# kdbc
h
Copy code
DatabaseSource source = new DatabaseSource(this, Models.DEFAULT, 1);
if (BuildConfig.DEBUG) {
    // use this in development mode to drop and recreate the tables on every upgrade
    source.setTableCreationMode(TableCreationMode.DROP_CREATE);
}

Configuration configuration = source.getConfiguration();
dataStore = RxSupport.toReactiveStore(
    new EntityDataStore<Persistable>(configuration));
This looks very cool. I normally use Ebean , and the database setup is a bit cumbersome.