Interface MigrationChain

All Superinterfaces:
ConnectionDetails

public interface MigrationChain extends ConnectionDetails
Public information about an applied migration. All migrations (applied and pending) form a chain of transformations to a database. The chain starts implicit with a baseline version. The baseline version is not contained in this chain.
Since:
0.0.4
Author:
Michael J. Simons
Soundtrack
Paul van Dyk - From Then On
  • Method Details

    • prettyPrint

      default String prettyPrint()
      Pretty prints this chain as an ASCII table.
      Returns:
      A formatted string (an ASCII table representing the chain)
      Since:
      0.0.11
    • getDatabaseName

      @Deprecated String getDatabaseName()
      Deprecated.
      Returns:
      The database if applicable (Neo4j 4.0 and up), maybe null
    • isApplied

      boolean isApplied(String version)
      Parameters:
      version - An arbitrary version string
      Returns:
      True, if the version string maps to a migration that has been applied.
    • getElements

      Returns:
      The elements of this migration
    • getLastAppliedVersion

      default Optional<MigrationVersion> getLastAppliedVersion()
      Returns:
      the last applied version
      Since:
      1.11.0