database-core/database_callback library

Classes

OnCreateCallback
Fired when the database has been just created with version. 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 from startVersion to endVersion. 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.