SchemaPlan
class in package klyn.data

    public class SchemaPlan:

SchemaPlan

Immutable, provider-neutral plan that reconciles mappings and physical data.

A plan owns no connection, credentials or mutable provider session. Apply it through the SchemaManager that produced it so lifecycle and stale-plan checks remain centralized.

    plan = factory.schema.diff()
    print(plan.preview)
    factory.schema.apply(plan)

Properties

Modifier and Type | Member | Description
--- | --- | ---
public readonly property | destructive `destructive as Boolean:` | True when at least one operation may destroy data or structures.
public readonly property | empty `empty as Boolean:` | True when physical structures already match the entity model.
public readonly property | executable `executable as Boolean:` | True when every operation can be executed by the selected provider.
public readonly property | modelFingerprint `modelFingerprint as String` | Mapping-model fingerprint used to reject stale or foreign plans.
public readonly property | operations `operations as IList<SchemaOperation>:` | Ordered immutable schema operations.
public readonly property | preview `preview as String:` | Human-readable multiline representation of the plan.
public readonly property | providerName `providerName as String` | Provider family that produced this plan.

Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | SchemaPlan `SchemaPlan( providerName as String, modelFingerprint as String, operations as IList<SchemaOperation> ):` | Creates an immutable schema plan.