Package liquibase.report
Class DatabaseInfo
- java.lang.Object
-
- liquibase.report.DatabaseInfo
-
public class DatabaseInfo extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static List<String>
DB_URL_VISIBLE_KEYS
-
Constructor Summary
Constructors Constructor Description DatabaseInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getVisibleDatabaseUrl()
Used in mustache template.protected String
getVisibleUrl(String originalUrl)
Builds a simpler version of the jdbc url if the url is longer thanCONNECTION_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
-
-
-
Method Detail
-
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 thanCONNECTION_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
-
-