generate method

String generate(
  1. List<DiffOperation> operations
)

Generates SQL DDL statements from a list of diff operations.

Overridable so a dialect can validate ACROSS operations (e.g. SQLite rejects a rebuild whose dependent table is itself altered in the same run), overrides should still delegate here for the per-operation work.

Implementation

String generate(List<DiffOperation> operations) {
  return [
    for (final op in operations) _nonBlank(op, render(op)),
  ].join('\n\n');
}