extractDBTypeFromConnection

Extracts the database type from the given connection. For H2, fetches the actual MODE from the active connection settings. For other databases, extracts type from URL.

Return

the corresponding DbType.

Parameters

connection

the database connection.

Throws

if URL information is missing in connection meta-data.

if the URL specifies an unsupported database type.

if the URL is null.