Data sources
Connect your databases to Briefer and fetch data from them.
Briefer works best when you connect it to your databases. This way, you can use real data in your pages and create more meaningful visualizations.
Briefer supports a variety of data sources, including:
- PostgreSQL
- BigQuery
- Redshift
- MySQL
- SQL Server
- Snowflake
To connect to your data sources, click on the “Data sources” button on the bottom left corner of the interface. Then, click on the “Add data source” button to add a new data source connection.
You can access the "data sources" page using the button on the bottom left corner of the interface.
To connect to a data source, you’ll need to provide the connection details, such as the host, port, username, and password.
After connecting a data source, you can use it in SQL blocks to fetch data.
Using data sources in SQL blocks
In every SQL block, there’s a data source selector on the top right corner. You can use this selector to choose the data source you want to query.
By default, the SQL block will use the first data source you connected to Briefer. If you want to change the data source, click on the selector and choose the one you want.
Using data sources for writebacks
You can also use data sources in writeback blocks. Writeback blocks allow you to write data back to your database.
When you add a writeback block, you’ll see a data source selector on the left side of the block. You can use this selector to choose the data source you want to write data to.
Troubleshooting data sources
If you’re having trouble connecting to your data source, the first thing to check is whether the data source’s address, port, and credentials are correct. Please try connecting to your data source using a database client like psql
and make sure you can connect to it using the same credentials you provided to Briefer.
In case you’re still having trouble, double check whether your data source is behind a firewall and whether you need to add Briefer’s IP addresses to your firewall’s allowlist.
Finally, if you can’t connect to your data source using the native connector, you may want to try connecting to it manually using Python code.