Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <connection object at 0x1085409d0; dsn: 'dbname=ecs user=masked password=xxxxxxx host=masked port=9200', closed: 0> <cursor object at 0x1085fcde0; closed: 0>
- import psycopg2
- print "Connecting to PostGres"
- database_connection = psycopg2.connect(database="ecs", user="masked", password="masked", host="masked", port="9200")
- database_cursor_1 = database_connection.cursor()
- print database_connection, database_cursor_1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement