Link Search Menu Expand Document

Connect Soda to PostgreSQL

For Soda to run quality scans of your data, you must configure it to connect to your data source.

  • For Soda Core, add the connection configurations to your configuration.yml file. Read more.
  • preview For Soda Cloud, add the connection configurations to step 3 of the New Data Source workflow. Read more.
data_source my_datasource_name:
  type: postgres
  connection:
    host: db
    port: "5432"
    username:
    password:
    database: postgres
  schema: public
Property Required Notes
type required  
host required  
port optional  
username required Consider using system variables to retrieve this value securely.
password required Consider using system variables to retrieve this value securely.
database required  
schema required  

Supported data types

Category Data type
text CHARACTER VARYING, CHARACTER, CHAR, TEXT
number SMALLINT, INTEGER, BIGINT, DECIMAL, NUMERIC, VARIABLE, REAL, DOUBLE PRECISION, SMALLSERIAL, SERIAL, BIGSERIAL
time TIMESTAMP, DATE, TIME, TIMESTAMP WITH TIME ZONE, TIMESTAMP WITHOUT TIME ZONE, TIME WITH TIME ZONE, TIME WITHOUT TIME ZONE




Was this documentation helpful?

What could we do to improve this page?


Last modified on 30-Sep-22