sqlbrite v0.3.0 Release Notes

Release Date: 2015-08-31 // over 8 years ago
    • Transactions are now exposed as objects instead of methods. Call newTransaction() to start a transaction. On the Transaction instance, call markSuccessful() to indicate success and end() to commit or rollback the transaction. The Transaction instance implements Closeable to allow its use in a try-with-resources construct. See the newTransaction() Javadoc for more information.
    • Query instances can now be turned directly into an Observable<T> by calling asRows with a Func1<Cursor, T> that maps rows to a type T. This allows easy filtering and limiting in memory rather than in the query. See the asRows Javadoc for more information.
    • createQuery now returns a QueryObservable which offers a mapToList operator. This operator also takes a Func1<Cursor, T> for mapping rows to a type T, but instead of individual rows it collects all the rows into a list. For large query results or frequently updated tables this can create a lot of objects. See the mapToList Javadoc for more information.
    • New: Nullability, @CheckResult, and @WorkerThread annotations on all APIs allow a more useful interaction with lint in consuming projects.