A MapCollection must be defined for UpgradeSupport to retain the database version.
Deletes the graph.
Deletes the graph.
true if the collections should also be dropped. Defaults to true.
true if the operation completed successfully
Initializes this graph instance, database, and session creating the graph and collections if it doesn't already exist (if createGraph and createCollections is true).
Initializes this graph instance, database, and session creating the graph and collections if it doesn't already exist (if createGraph and createCollections is true). This can be invoked multiple times without risk of duplicate functionality.
automatically creates the graph if it doesn't already exist if set to true. Defaults to true.
automatically creates the collections if they don't already exist if set to true. Defaults to true.
true if the operation completed without error
Determines the latest version available based on the upgrades registered.
Registers an upgrade for a specific version.
Registers an upgrade for a specific version. Version numbers should start at 1 as 0 represents the initial state.
if false the upgrade will be skipped if the upgrade is invoked on a new database. This is useful for database migration functionality that presumes data in a specific state but is not applicable on a new instance. Defaults to true.
Runs all registered but un-applied database upgrades to get to the latest version.
The current version of the database.
The current version of the database. If no upgrades have been run the version will be 0.
Adds support to the Graph to manage database upgrades and versioning.
Overrides
Graph.init
to run upgrades immediately after other initialization occurs.