Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python3
- import time
- import pg8000
- connection = pg8000.connect(
- database='alexey',
- user='alexey',
- password='',
- host='',
- port=5432
- )
- cur = connection.cursor()
- cur.execute('select 1')
- print(list(cur.fetchall()))
- cur.close()
- time.sleep(5555)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement