database-core/database_callback library
Classes
- OnCreateCallback
-
Fired when the
database
has been just created withversion
. All actions are run within a single transaction. - OnOpenCallback
-
Fired when the
database
has successfully been opened. - OnUpgradeCallback
-
Fired when the
database
has finished upgrading fromstartVersion
toendVersion
. All actions are run within a single transaction.
Typedefs
- PredicateExecute = bool Function(int oldVersion, int newVersion)
- Predicate current database version whether execute OnUpgradeCallback.onUpgrade function.