JDBC Data base connection in Java based Test Automation Framework

Below is the code for JDBC MySQl connection and reusable method which return 2 D array.

GitHub location:

 https://github.com/akashdktyagi/AutomationPoCCucumber/tree/master/src/test/java/bddcucumber/managers/dbmanager

Code:

DB Connection Singleton Pattern:

DB Manager

Dependencies for MYSQL JDBC impl:

Video Explanation: