Guest User

Untitled

a guest
Oct 31st, 2018
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. import psycopg2
  2.  
  3. conn_string = "host='localhost' dbname='postgis_test' user='i.tolkachev' password=''"
  4. print("Connecting to database -> %s" % (conn_string))
  5. conn = psycopg2.connect(conn_string)
  6. cursor = conn.cursor()
Add Comment
Please, Sign In to add comment