Configuring DB Connector- Vertica

DronaHQ Studio enables you to use databases by configuring their connectors and now Vertica Connector is available in the studio.

Vertica gives a top-tier, unified analytics platform that will always be free of the hidden framework. Connecting Studio to Vertica lets you construct UIs rapidly on top of your Vertica information. For instance, you could fabricate an instrument to adjust metadata tables. You can peruse information from Vertica and afterward compose information back to it either straightforwardly, or through a different API.

Configuring a Vertica connector

To add a third-party DB connector, under Studio > Connectors, click (+) Connector. Select Vertica connector.

Enter the Connector Name.

In order to establish a connection to the Vertica database, you would need a few parameters or fields. The connection parameters that are required are Host and database name. Add the other configuration details for Port, Username, and Password.

NOTE: You can get your database connection details from whoever set up the database. You’ll also need to get them to whitelist the DronaHQ Studio IP address.

Once these configurations are added, click Test connection. If the authentication is successful, you will get the response accordingly. Click to Save your configuration.

Adding Queries to the connector

Now that you have configured the connector you will find it under the Custom Database connectors list. Further to fetch data or undertake any other action, click the Add query option available after your connection is ready.

Here you can add your queries - simple as well as complex ones. On the right-hand side of the screen, you can see the list of tables from the database. You can expand the tables to view the fields from the table.

To use a dynamic variable in a query, you simply need to put it into double Curly brackets. You can add a sample value to test your query before saving it. When using the connector queries the dynamic variables would have to be linked to the respective control for further run-time functioning.

You can now view the queries that you saved for use in your apps later under your specific connector under Custom Database connectors.

Using Vertica connector

Fetch all data

Now let us take a simple example to fetch all rows from the table and display them in a table grid control. In this case, you simply need to add the SQL query as per the Vertica syntax.

Add the query as seen above and run to verify the output. Once done Save the query.

Now, whenever you need to get data from Vertica you can use the connector query anytime within your apps. Now if you want to display the author permissions in a tablegrid control you simply need to add the connector to the app and then bind the connector in the respective control’s properties (tablegrid in this case).
You can also view the SQL query being used using the Show query. If you want to hide the query for some reason, click Hide Query. Beyond the configured queries, if you feel the need to have a few more queries you can use the Add Query option.