Skip to main content

Connect to PostgreSQL

Step 1: Create the Connector​

ash proai connector create my-postgres \ --type postgres \ --host db.example.com \ --port 5432 \ --database mydb \ --username proai_user

Step 2: Test the Connection​

ash proai connector test my-postgres

Step 3: Use in a Pipeline​

sources:
- name: my_source
connector: my-postgres
config:
table: users
`

## See Also

- [PostgreSQL Integration](/docs/integrations/databases/postgres)