Package io.github.mfvanek.pg.generator
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
-
Method Details
-
generate
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
-