user
11/26/2025, 4:20 PMprivate void printDataSourceConfiguration(String stage) {
<http://log.info|log.info>("Stage: ${stage}")
try {
// Unwrap if it's a TransactionAwareDataSourceProxy
DataSource actualDataSource = dataSource
actualDataSource = ((TransactionAwareDataSourceProxy) dataSource).getTargetDataSource()
def connection = actualDataSource.getConnection()
def metaData = connection.getMetaData()
<http://log.info|log.info>(" Database URL: ${metaData.getURL()}")
<http://log.info|log.info>(" Database Product: ${metaData.getDatabaseProductName()} ${metaData.getDatabaseProductVersion()}")
<http://log.info|log.info>(" Driver: ${metaData.getDriverName()} ${metaData.getDriverVersion()}")
connection.close()
} catch (Exception e) {
log.warn(" -> Could not extract connection metadata: ${e.message}")
}
}
what is the object I have to get data from?user
12/01/2025, 9:20 AM