Package liquibase.report
Class DatabaseInfo
java.lang.Object
liquibase.report.DatabaseInfo
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionUsed 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;..."
-
Field Details
-
DB_URL_VISIBLE_KEYS
-
-
Constructor Details
-
DatabaseInfo
public DatabaseInfo()
-
-
Method Details
-
getVisibleDatabaseUrl
Used in mustache template.- Returns:
- the visible url string.
-
getVisibleUrl
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
-