To establish a database connection, you need just few basic things.
- an url with database IP and PORT
- schema name if necessary
- database Driver library
- Driver class
Also, ensure that there is a Daobab library imported.
Having such data, we can check the connection from DaobabGenerator class.
You can do it from some class with main method for example, or even from some test unit case.
Example connection check for PosgreSql
Example connection to MySql database:
If all parameters are correct, after execution you should see some information about accessed database:
Above example shows PostgreSql database having one catalog 'postgres' and four schemas inside.
If your database connection is fine, you may begin the reverse engineering.