Connections
Connections make it easy to use data from external sources directly in your Prophecy projects. You can set up connections as you build your pipelines, and connections will be stored in your attached fabric.
As you build your pipelines, you'll be able to:
- Create connections from the Environment browser or from external Source and Target gems.
- Configure secrets for your connections that will encrypt your connection credentials.
- Browse data from established connections in the Environment browser.
- Add data to your pipeline directly from the Environment browser.
Connections in the Environment browser
Connections allow Prophecy to access specific data from external providers using your credentials. The data will appear in the Environment browser of the project sidebar, allowing you to easily locate data, explore data, and add data to your pipeline canvas. Data access permissions are inherited from your external user account.
When you attach a Prophecy fabric to your project, you will by default see the data from your primary SQL warehouse in the Environment browser. If you want to see more connections in your project, you can click + Connect more data at the bottom of the Environment browser. Once you configure a connection, Prophecy will automatically save it to your attached fabric. To understand how to configure individual connection types, visit the list of connections.
To use data from the environment browser:
- Drag a source from the environment browser to the pipeline canvas.
- Open the gem configuration.
- Notice Prophecy has configured the source gem for you.
- Load and preview the data.
- Add downstream gems to perform data transformations.
Connections in external Source/Target gems
If you add an external Source or Target gem from the gem drawer to your pipeline canvas, you will need to configure the gem:
- Add an external Source or Target gem to your canvas.
- Open the gem to view the configuration dialog.
- Select the correct Type and Format.
- Open the Location tab.
- Select an existing connection for your gem, or create a new one.
- Open the Properties tab and verify the schema of your table.
- Save the gem.
When setting up external sources and targets, consider the primary SQL connection in your Prophecy fabric. Processing tables natively in the primary SQL warehouse will be fast. Processing external data is slower. Do not create an external connection that duplicates your primary SQL warehouse connection.
Secrets in connections
As you create connections, you will notice that credentials must be populated with secrets. Secrets keep your credentials encrypted and secure. Once you add your secrets to your connections, you can reuse the connections throughout the pipeline without having to reauthenticate or re-enter your credentials. This relationship between secrets and connections keeps Prophecy secure for your data processing needs.
What's next
Now that you understand how to use connections in your pipelines, check out the following resources.
- To see a complete list of connections, view the connections that are available for Prophecy fabrics.
- To understand how to configure individual connection types, visit the list of connections.
- All connections require secrets to keep your credentials safe. View the documentation on secrets to learn more.