klyn.data.SchemaOperation.SchemaOperation
constructor

    public SchemaOperation(
    kind as SchemaOperationKind,
    entityType as Type,
    description as String,
    command as String,
    destructive as Boolean = false,
    executable as Boolean = true
    ):

Description

Creates one immutable schema operation.

Parameters

Parameter | Description
--- | ---
`kind` | Canonical operation kind.
`entityType` | Affected mapped entity type.
`description` | Human-readable description.
`command` | Provider command; empty only for unsupported operations.
`destructive` | Whether the operation may remove data or structures.
`executable` | Whether the provider can apply the operation.

Throws

- ValueException when required metadata is missing.

Example

    operation = SchemaOperation(
    SchemaOperationKind.CREATE_TABLE,
    User.type,
    "Create table T_Users",
    "CREATE TABLE T_Users (...)"
    )