Advertisement
Guest User

Untitled

a guest
Feb 12th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. #!/usr/bin/python3
  2. import time
  3. import pg8000
  4. connection = pg8000.connect(
  5.     database='alexey',
  6.     user='alexey',
  7.     password='',
  8.     host='',
  9.     port=5432
  10. )
  11. cur = connection.cursor()
  12. cur.execute('select 1')
  13. print(list(cur.fetchall()))
  14. cur.close()
  15.  
  16. time.sleep(5555)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement