Create a database connection string with host, credentials, TLS, and driver options.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
Driver, host, port, database, user, password, TLS, and extra options are serialized into the selected key-value or URI syntax. Values containing separators are quoted or percent-encoded for that format.
Driver: postgresql Host: db.example.com Port: 5432 Database: myapp Username: admin Password: secret SSL: true
postgresql://admin:[email protected]/myapp?sslmode=require
Application secrets, migration tools, and local database READMEs build connection strings.