Files
pgcat/tests/python/tests.py
2022-02-03 18:02:50 -08:00

9 lines
169 B
Python

import psycopg2
conn = psycopg2.connect("postgres://random:password@127.0.0.1:5433/db")
cur = conn.cursor()
cur.execute("SELECT 123");
res = cur.fetchall()
print(res)