This shows how to connect and query different data base servers using java. It can be used with automation testing frameworks(api/web/mobile) where querying different database is required.
- MySQL
- Mongo
- PostGres
MySql JDBC driver, Mongo driver, Postgres drivers are required to POM.xml file.