JDBC

JDBC stands for Java Database Connectivity - it's a standard Java protocol for connecting to databases. UI Bakery allows you to connect to data sources that don't have native support on the platform but have a JDBC driver.

Configuration

Configuring your Enterprise instance to support a custom JDBC driver

In order for a custom JDBC driver to work, it needs to be available in the datasource container. The easiest way to do this is to copy the driver to a VM where your datasource container is running and mount it to the container using the docker-compose.yml file:

  datasource:
    container_name: datasource
    image: cruibakeryonprem.azurecr.io/cloud/datasource:latest
    restart: always
    env_file: .env
    volumes:
      - ~/jdbc-driver-location-host:~/jdbc-driver-location-container

After that, you need to add the following environment variable to your .env file and restart the instance:

UI_BAKERY_DATASOURCE_JDBC_DRIVER_PATH=~/jdbc-driver-location-container/driver.jar

Connecting the JDBC datasource

  1. On the Data sources page, click Connect, and select JDBC in the Data sources list.

  2. Specify the JDBC connection string, for example:

jdbc:<driver type>:<host>:<port>

You can also supply different connection properties the driver supports using query parameters.

  1. Next, specify Driver name, your username & password and test the connection.

  2. Click Connect Datasource to complete the setup.

Usage

Currently, UI Bakery only supports the SQL Query action step when working with JDBC data sources.

Last updated

Was this helpful?