This repository has been archived by the owner on Aug 17, 2020. It is now read-only.
0.3.0
- Transactions are now exposed as objects instead of methods. Call
newTransaction()
to start a
transaction. On theTransaction
instance, callmarkSuccessful()
to indicate success and
end()
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 a
Func1<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.
Download:
compile 'com.squareup.sqlbrite:sqlbrite:0.3.0'