This repository was 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 theTransactioninstance, callmarkSuccessful()to indicate success and
end()to commit or rollback the transaction. TheTransactioninstance implementsCloseable
to allow its use in a try-with-resources construct. See thenewTransaction()Javadoc for more
information. Queryinstances can now be turned directly into anObservable<T>by callingasRowswith a
Func1<Cursor, T>that maps rows to a typeT. This allows easy filtering and limiting in
memory rather than in the query. See theasRowsJavadoc for more information.createQuerynow returns aQueryObservablewhich offers amapToListoperator. 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 themapToListJavadoc for more information.- New: Nullability,
@CheckResult, and@WorkerThreadannotations on all APIs allow a more useful
interaction with lint in consuming projects.
Download:
compile 'com.squareup.sqlbrite:sqlbrite:0.3.0'