Interface MigrationInfoService


public interface MigrationInfoService
Info about all migrations, including applied, current and pending with details and status.
  • Method Details

    • all

      MigrationInfo[] all()
      Retrieves the full set of infos about applied, current and future migrations.
      Returns:
      The full set of infos. An empty array if none.
    • all

      Retrieves the full set of infos about applied, current, and future migrations, that match the provided filter.
      Parameters:
      filter - The filter to use to restrict the infos.
      Returns:
      The full set of infos that match the filter. An empty array if none.
    • current

      MigrationInfo current()
      Retrieves the information of the current applied migration, if any.
      Returns:
      The info. null if no migrations have been applied yet.
    • pending

      MigrationInfo[] pending()
      Retrieves the full set of infos about pending migrations, available locally, but not yet applied to the DB.
      Returns:
      The pending migrations. An empty array if none.
    • applied

      MigrationInfo[] applied()
      Retrieves the full set of infos about the migrations applied to the DB.
      Returns:
      The applied migrations. An empty array if none.
    • getInfoResult

      InfoResult getInfoResult()
    • getInfoResult

      InfoResult getInfoResult(MigrationFilter filter)