PostgreSQL
Access configuration details to connect Soda to a PostgreSQL data source.
Connection configuration reference
Install the package soda-postgres:
pip install soda-postgresData source YAML
Create the config file:
soda data-source create -f ds_config.ymlThe data source configuration YAML should look like the following:
type: postgres
name: my_postgres
connection:
user: ${env.POSTGRES_USER}
host: ${env.POSTGRES_HOST}
port: 5432
password: ${env.POSTGRES_PW}
database: ${env.POSTGRES_DB}Connection test
Test the data source connection:
soda data-source test -ds ds_config.ymlLast updated
Was this helpful?
