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 theTransaction
instance, callmarkSuccessful()
to indicate success andend()
to commit or rollback the transaction. TheTransaction
instance implementsCloseable
to allow its use in a try-with-resources construct. See thenewTransaction()
Javadoc for more information. Query
instances can now be turned directly into anObservable<T>
by callingasRows
with aFunc1<Cursor, T>
that maps rows to a typeT
. This allows easy filtering and limiting in memory rather than in the query. See theasRows
Javadoc for more information.createQuery
now returns aQueryObservable
which offers amapToList
operator. This operator also takes aFunc1<Cursor, T>
for mapping rows to a typeT
, 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 themapToList
Javadoc for more information.- New: Nullability,
@CheckResult
, and@WorkerThread
annotations on all APIs allow a more useful interaction with lint in consuming projects.
- Transactions are now exposed as objects instead of methods. Call