Ollie
Ollie copied to clipboard
[question] where should I initialize the Ollie?
I gathered that the following code must be called:
Ollie.with(context)
.setName(DB_NAME)
.setVersion(DB_VERSION)
.setLogLevel(LogLevel.FULL)
.setCacheSize(CACHE_SIZE)
.init();
What is the best place? The application initialization?
How should I set CACHE_SIZE ?
note: an android sample would be a huge help to get things started.
The onCreate() of the application is a good place.
Just go with Ollie.DEFAULT_CACHE_SIZE for starters.
Thanks!
The README.md should be updated using that info.
Also a bit off topic, how the call to default methods in
Select.columns("COUNT(*)").from(Note.class).observableValue(Integer.class)
.subscribe(count -> {
// do stuff with count
});
are supposed to work for Android? Is java8 allowed for Android?