Interface DbMigrationGenerator<T extends TableNameAware>

Type Parameters:
T - represents an object in a database associated with a table
All Known Implementing Classes:
ColumnWithSerialTypeMigrationGenerator, ForeignKeyMigrationGenerator

public interface DbMigrationGenerator<T extends TableNameAware>
Database migrations generator.
Since:
0.5.0
  • Method Summary

    Modifier and Type
    Method
    Description
    generate(List<T> rows)
    Generates sql migration based on the specified rows.
  • Method Details

    • generate

      @Nonnull String generate(@Nonnull List<T> rows)
      Generates sql migration based on the specified rows.
      Parameters:
      rows - a set of data on the basis of which the sql migration will be generated
      Returns:
      generated sql migration