79368861

Date: 2025-01-19 11:34:39
Score: 2.5
Natty:
Report link

I agree with @Turing85, this is not a good practice. However, if you're building a tool to assist with database analysis, such as measuring query performance or automating some non-business-related analyses, I think you simply need to use something like DataSourceFactory, JdbcTemplate. This will allow you to dynamically connect to databases using data provided, for example, through an endpoint.

Reasons:
  • No code block (0.5):
  • User mentioned (1): @Turing85
  • Low reputation (1):
Posted by: Maciej Iwan