com.dbflow5, which enables bundling multiple versions in the same repo.
-kotlinextensionsartifacts are not rolled within the library.
paging(architecture components Paging),
contentprovider, (splits out
ContentProviderusage out of main library),
RXJava1 and 2 support is dropped given, https://github.com/ReactiveX/RxJava/tree/2.x is now in maintenance mode. You simply need to copy paste the
reactive-streamsfiles you need and then replace the package names back to their RXJava2 equivalent. RXJava 1 is not quite equivalent and not supported.
save()methods on the
ModelAdapterclasses now use a more efficient
INSERT OR REPLACEmethod, rather than check if
existsmanually from the DB before inserting or replacing.
@Databaseclasses must now be an abstract class that extends
DBFlowDatabase(or related subclass)
@Databaseannotation fields including
inMemory. Use the
DatabaseConfig.Builderobject when initializing DBFlow.
DatabaseWrapperthat was used in model operations is now required explicit.
ContentValuesgenerated code is no l longer enabled by default. If you need the methods, set
@Table(generateContentValues = true). 1. For
@ContentProviderobject, your db must now extend
ContentValuesmethods on the database.
@Columnis no longer the default. By default any field in the model class are referenced. To enable the old behavior use
@Table(allFields = false)
createWithDatabasethat were allowed on
@ModelViewQuerycan now be used on a
assignDefaultValuesFromCursorthat were allowed on
Database Not Running in a Transaction. Performance may be impacted, observability will need manual updates via db.tableObserver.checkForTableUpdates()
QueryModelAdapteris deprecated as
RetrievalAdapterperforms all functionality.
JournalModeto support write-ahead logging. Note: on higher end devices this will enable
TableObserverclass on a
DBFlowDatabase. Inspired by Room, this sets up
Triggeron table changes for observed tables to efficiently track which table changes. This is useful in recomputing queries for
DataSource. Whenever a
Transactionis run on the DB, upon completing it, we check for any table changes and dispatch that to the active queries that are observed.
AlterTableMigrationsupports default values for a column when adding a column.