Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ardeshireshghi/96dee787a33f1c0d822b2d4929496cbe to your computer and use it in GitHub Desktop.
Save ardeshireshghi/96dee787a33f1c0d822b2d4929496cbe 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