Data source reference for Soda Core
This page lists the supported data source types and their required connection parameters for use with Soda Core.
Soda uses the official Python drivers for each supported data source. The configuration examples below include the default required fields, but you can extend them with any additional parameters supported by the underlying driver.
Each data source configuration must be written in a YAML file and passed as an argument using the CLI or Python API.
General Guidelines
Each configuration must include
type
,name
, and aconnection
block.Use the exact structure required by the underlying Python driver.
Test the connection before using the configuration in a contract
Connect to a Data Source Already Onboarded in Soda Cloud (via Soda Agent)
You can run verifications using Soda Core (local execution) or a Soda Agent (remote execution). To ensure consistency and compatibility, you must use the same data source name in both your local configuration for Soda Core and in Soda Cloud. See: Onboard datasets on Soda Cloud
This matching by name ensures that the data source is recognized and treated as the same across both execution modes, whether you’re running locally in Soda Core or remotely via a Soda Agent.
Onboard a Data Source in Soda Cloud After Using Soda Core
It’s also possible to onboard a data source to Soda Cloud and a Soda Agent after it was onboarded using Soda Core.
To learn how: Onboard datasets on Soda Cloud
Using Environment Variables
You can reference environment variables in your data source configuration. This is useful for securely managing sensitive values (like credentials) or dynamically setting parameters based on your environment (e.g., dev, staging, prod).
Example:
Environment variables must be available in the runtime environment where Soda is executed (e.g., your terminal, CI/CD runner, or Docker container).
PostgreSQL
Install the following package:
Data source YAML
Snowflake
Install the following package:
Data source YAML
Databricks
Install the following package:
Data source YAML
Last updated
Was this helpful?