PostgreSQL

PostgreSQL is a powerful open-source relational database management system known for its robustness and extensibility.

title

How do I activate this integration?

1

First Step

Log in to your Onvo account, go to the Integrations page, and click on Connect next to the PostgreSQL Database card.

2

Second Step

You will then be shown a configuration modal where you can enter the PostgreSQL credentials and click on Connect PostgreSQL DB.

3

Third Step

Head over to the Data sources page and click on New data source.

4

Fourth Step

Fill in a name for the data source, an optional description, and choose PostgreSQL as the type. Then click on Connect.

5

Fifth Step

In the page that appears, fill in the SQL query and click on Save changes. You should now see your data descriptions and sample data appear.

title

What can I do with this integration?

You can pull in data from multiple tables/databases as data sources on Onvo to build your dashboards and reports. Any datasource using the PostgreSQL integration will be kept in sync with the underlying data to keep your dashboards live.

You can create beautiful, interactive dashboards using your PostgreSQL data. Just ask for the kind of visualization you want in natural language to create a widget on the dashboard. You can also ask for data pre-processing before visualization. We also allow for questions in natural language to your data on PostgreSQL.

title
Once you are happy with your dashboard, you can integrate them into your products with the SDK.

How do I create a dashboard using multiple tables?

On Onvo, you can do this in two ways:

  1. You can write an SQL query with a join on a single datasource so that the datasource has all the relevant data to begin with.
  2. You can optionally create 2 separate data sources and make sure you mention the field used to correlate the data in the "fields" tab. This will enable the AI to write the necessary code to join the data without having to write complicated join queries.

Config parameters

host
string

Database server address (e.g., "localhost" or "192.168.1.1").

port
string

Port number for connecting to the PostgreSQL database server (e.g., "5432").

user
string

Database username for authentication (e.g., "myuser").

password
string

Password for connecting to the PostgreSQL database server.

database
string

Name of the target database (e.g., "mydatabase").

query
string

SQL query to execute on the PostgreSQL database. Example: "SELECT * FROM mytable WHERE column = 'value'".

Security considerations

It is recommended to set up a separate user on your PostgreSQL database with just read access to the tables you require for your dashboard. In addition, if possible, restrict the incoming IP addresses to the database.

If you do restrict access by IP addresses, make sure to whitelist 35.209.78.5 for Onvo AI to access your database.