Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jayzeng/d022ffe54164276493a0c898b5898c97 to your computer and use it in GitHub Desktop.
Save jayzeng/d022ffe54164276493a0c898b5898c97 to your computer and use it in GitHub Desktop.
import psycopg2
connection = psycopg2.connect("dbname=name-of-db user=prod password=xxxx host=somehost sslmode=verify-full sslrootcert=/usr/local/share/ca-certificates/ca-2019-root.pem")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment