render method

String render(
  1. DiffOperation operation
)

Renders a single operation through the dialect's methods.

Implementation

String render(DiffOperation operation) => switch (operation) {
      CreateTable(:final table, :final ifNotExists) =>
        createTable(table, ifNotExists: ifNotExists),
      DropTable(:final tableName) => dropTable(tableName),
      final AlterTable alter => alterTable(alter),
      CreateIndex(:final index, :final ifNotExists) =>
        createIndex(index, ifNotExists: ifNotExists),
      DropIndex(:final indexName) => dropIndex(indexName),
    };