Skip to content

Instantly share code, notes, and snippets.

@crawles
Last active September 21, 2016 15:51
Show Gist options
  • Save crawles/2199407fea7ebbee6c6d276733888f0c to your computer and use it in GitHub Desktop.
Save crawles/2199407fea7ebbee6c6d276733888f0c to your computer and use it in GitHub Desktop.
Boilerplate code for connecting to a HAWQ, Greenplum, or PostgreSQL database in Python
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
database = #dbname
host = #hostname
port = #portname
username = #username
password = #password
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment