Connection

Check database connection

To establish a database connection, you need just few basic things.


Prepare:

- an url with database IP and PORT

- username

- password

- 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.

Share This Page

FACEBOOK COMMENTS WILL BE SHOWN ONLY WHEN YOUR SITE IS ONLINE

©Elephant Software Klaudiusz Wojtkowiak
e-mail: contact@daobab.io