Skip to content
This repository has been archived by the owner on Aug 17, 2020. It is now read-only.

0.3.0

Compare
Choose a tag to compare
@JakeWharton JakeWharton released this 31 Aug 18:39
· 229 commits to trunk since this release
  • 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.

Download:

compile 'com.squareup.sqlbrite:sqlbrite:0.3.0'