Data Sources : Overview
Data Sources pull in and push data to any source including databases, external APIs, or services. Once a data source is connected to a workspace, the connection can be shared with any app of that workspace.
Data Source page is available only on ToolJet version 2.3.0 and above.
Connecting data sources
Create a new app from the dashboard, and Click on the + Add new button from the query panel.
Or you can directly go to the Data Sources page from the left sidebar of the dashboard
Within the Data Sources page, you'll find various categories of data sources on the left side, including Databases, APIs, Cloud Storages, and plugins. Click on each category to view the list of accessible data sources. As you hover over the desired data source, an
Addbutton will appear. Upon clicking this button, the selected data source will be integrated into the workspace.
Once the data source is added, you'll be required to input the configuration details for establishing a connection.
Note: For paid plans, configuration entry and saving are necessary to enable availability across multiple environments.
Returning to the dashboard, proceed to generate a new application. The recently added data source will be accessible within the query panel under the Available data sources section. Data Sources that have been added can now be utilized in both existing applications and newly created applications.
At this point, you can create queries to the connected data sources. Within these queries, the option exists to switch between distinct connections associated with the same data source, in cases where multiple connections have been established.
Default data sources
By default, 4 data sources will be available on every app on ToolJet:
Changing the Permissions for Data Sources is a privilege reserved for Admins and Super Admins within the workspace.
To configure these permissions, navigate to Workspace Settings -> Groups Settings. Admins and Super Admins have the authority to assign the following permissions to user groups:
Creation and Deletion of data sources within the workspace
|Add new data sources and modify existing ones. Delete button will not be visible on hovering over the connected data source.
|Remove connected data sources from the workspace. Delete button will show up on hovering over the connected data source.
|Both Create and Delete
|Add new data sources and remove connected data sources from the workspace.
|Niether Create nor Delete
|No access to the Data Sources page from the Dashboard. Error toast will popup on trying to access the Data Sources page using URL.
Authorization to View or Edit permitted data sources from the data source page
|Connect to authorized data sources for their user group. Users can't update the credentials of authorized data sources.
|Users can update the credentials of authorized data sources.
Changing scope of data sources on an app created on older versions of ToolJet
On ToolJet versions below 2.3.0, the data source connection was made from within the individual apps. To make it backward compatible, we added an option to change the scope of the data sources and make it global data source.
When dealing with apps that were created using ToolJet versions prior to 2.3.0, you will notice the presence of the data source manager in the left sidebar of the App Builder.
To change the scope, locate the kebab menu situated next to the connected data source. From this menu, select the change scope option.
Once you change the scope of the data source and make it global, you'll see that the data source manager is removed from the left sidebar and now you'll find the data source on the query panel under Global Data sources. You can now configure the data source from the Data Sources page on the dashboard.
Once you have successfully changed the scope of the data source, thereby transforming it into a global data source, you will observe that the data source manager from the left sidebar is removed. Subsequently, the data source will be accessible within the query panel under the Available data sources section. Now you can configure this data source from the Data Sources page located on the Dashboard.