Skip to main content
Let’s create a simple JDBC application that queries the Regatta database. Start by adding the reference to the regatta driver:
Note that you should import all relevant classes based on the functionality of your application and its requirements.

Connection Details

Connection parameters will be defined as follows:

Example Appliaction

Below is an example of a sample application that creates an employees table, adds four rows and then selects them. Create the main program and save it as: src/main/java/dev/regatta/jdbc1/DatabaseExample.java

Maven Project Setup

Create a pom.xml alongside your example:
This pom.xml assumes you already installed the Regatta JDBC driver locally.

Running the Application

Compile and run the application:
Expected output: