Phosphor
Qt6 / Wayland library suite for window-management tools
 
Loading...
Searching...
No Matches
PhosphorConfig::MigrationStep Struct Reference

One step in a schema version migration chain. More...

#include <phosphor-config/include/PhosphorConfig/Schema.h>

Public Attributes

int fromVersion = 0
 
std::function< void(QJsonObject &)> migrate
 

Detailed Description

One step in a schema version migration chain.

Transforms the root JSON document in place from fromVersion to fromVersion+1. Implementations MUST stamp the new version under Schema::versionKey before returning; MigrationRunner verifies the bump happened and aborts the chain otherwise.

Member Data Documentation

◆ fromVersion

int PhosphorConfig::MigrationStep::fromVersion = 0

◆ migrate

std::function<void(QJsonObject&)> PhosphorConfig::MigrationStep::migrate

The documentation for this struct was generated from the following file: