6#include <phosphorconfig_export.h>
60 QVector<MigrationStep> m_orderedSteps;
Executes a Schema's migration chain against a JSON document.
Definition MigrationRunner.h:23
bool runOnFile(const QString &jsonPath) const
Read the file at jsonPath, run the chain, and — if the version advanced — atomically write the result...
void stampVersion(QJsonObject &root) const
Stamp root with the schema's current version.
int readVersion(const QJsonObject &root) const
Current version persisted in root, or 1 if unset / invalid.
void runInMemory(QJsonObject &root) const
Apply the full migration chain in memory.
MigrationRunner(const Schema &schema)
MigrationRunner(Schema &&)=delete
Forbid construction from a temporary Schema — the runner stores a const reference,...
Declarative description of a configuration store.
Definition Schema.h:89