How a schema changed, e.g. a source's table since its snapshot was saved

interface SchemaDiff {
    added: readonly SchemaColumn[];
    changed: readonly SchemaColumnChange[];
    removed: readonly SchemaColumn[];
    reordered: boolean;
}

Properties

added: readonly SchemaColumn[]

Columns only in the new schema, in its order

changed: readonly SchemaColumnChange[]

Columns in both, by name, whose type or nullability changed, in the new schema's order

removed: readonly SchemaColumn[]

Columns only in the old schema, in its order

reordered: boolean

The columns in both come in another order