spring-framework / org.springframework.jdbc.support / JdbcUtils / commonDatabaseName

commonDatabaseName

@Nullable open static fun commonDatabaseName(@Nullable source: String): String

Extract a common name for the database in use even if various drivers/platforms provide varying names.

Parameters

source - the name as provided in database metadata

Return
the common name to be used