Enums

Migration related erorrs.

Constants

Defines how many items are migrated to the new version of database at once.

A version of database at which blooms-db was introduced

Current version of database models.

Database is assumed to be at default version, when no version file is found.

The migration from v10 to v11. Adds a column for node info.

The migration from v11 to v12. Adds a column for light chain storage.

Until this version please use upgrade tool.

Version file name.

Functions

Database backup

Migrations on the consolidated database.

Consolidated database path

Reads current database version from the file at given path. If the file does not exist returns DEFAULT_VERSION.

Default migration settings.

Migrates the database.

Migrates database at given position with given migration rules.

Writes current database version to the file. Creates a new file if the version file does not exist yet.

Returns the version file path.