Skip to main content
Let’s create a simple Node.js 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

To help you get acquainted with the Regatta API for Node.js, we’ve provided a simple code example below. This application demonstrate common tasks such as creating connections, executing queries, and working with cursors. The Regatta API supports both async/await and callback-based patterns. Create the main program and save it as: node_regatta_example.js

Running the Application

Run the application from the directory containing your example:
Expected output: