cancel
Showing results for 
Search instead for 
Did you mean: 

Datahub SQL data retrieval

uldis
Explorer
0 Kudos
173

Hi,

my questions what would be the best practice to go for retrieving info from a SQL table (using MySQL) trough DH. In my case, I am trying to retrieve data from the table publication retry to further use the data it in my datahub extension.

Thanks, Uldis

Accepted Solutions (1)

Accepted Solutions (1)

former_member387866
Active Contributor
0 Kudos

Hi Uldis,

As this is a Spring application and the local.properties has datasource.*.* properties you could try:

 @Autowired private DataSource dataSource;

And then just use it as a standard JDBC DataSource with Connection,PreparedStatement and ResultSet.

Regards,
Luke

Answers (0)