database-core/database_callback library
Classes
- OnCreateCallback
-
Fired when the
databasehas been just created withversion. All actions are run within a single transaction. - OnOpenCallback
-
Fired when the
databasehas successfully been opened. - OnUpgradeCallback
-
Fired when the
databasehas finished upgrading fromstartVersiontoendVersion. 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.