DSN Reference
General Format
<scheme>://<username>:<password>@<hostname>:<port>/<database_name>?<options>PostgreSQL
DSN Format
postgres://<user>:<password>@<host>:<port>/<database>?<options>
# Alternative schemes also supported:
psql://<user>:<password>@<host>:<port>/<database>?<options>Examples
# Basic connection
postgres://myuser:mypassword@localhost:5432/mydatabase
# With SSL disabled
postgres://myuser:mypassword@localhost:5432/mydatabase?sslmode=disable
# With specific schema
postgres://myuser:mypassword@localhost:5432/mydatabase?schema=public
# Multiple options
postgres://myuser:mypassword@localhost:5432/mydatabase?sslmode=disable&schema=analyticsSupported Options
ClickHouse
DSN Format
Examples
Port Configuration
Connection Type
Port
Description
Supported Options
ClickHouse Cloud Configuration
Environment Variable Substitution
Troubleshooting
Common Issues
URL Encoding
Last updated
Was this helpful?

