Class DatabaseInfo

java.lang.Object
liquibase.report.DatabaseInfo

public class DatabaseInfo extends Object
  • Field Details

    • DB_URL_VISIBLE_KEYS

      public static final List<String> DB_URL_VISIBLE_KEYS
  • Constructor Details

    • DatabaseInfo

      public DatabaseInfo()
  • Method Details

    • getVisibleDatabaseUrl

      public String getVisibleDatabaseUrl()
      Used in mustache template.
      Returns:
      the visible url string.
    • getVisibleUrl

      protected String getVisibleUrl(String originalUrl)
      Builds a simpler version of the jdbc url if the url is longer than CONNECTION_URL_MAX_LENGTH If the original url was "jdbc:sqlserver://localhost:1433;someParam=nothing;databaseName=blah;someParam2=nothing;someParam3=nothing;..." (greater than CONNECTION_URL_MAX_LENGTH chars) will be shuffled to read "jdbc:sqlserver://localhost:1433;databaseName=blah..." for presentation
      Parameters:
      originalUrl - the original jdbc url
      Returns:
      the modified url if longer than CONNECTION_URL_MAX_LENGTH