Files
pgcat/tests/python/tests.py

11 lines
191 B
Python
Raw Normal View History

2022-02-03 18:02:50 -08:00
import psycopg2
conn = psycopg2.connect("postgres://random:password@127.0.0.1:5433/db")
cur = conn.cursor()
2022-02-03 18:13:36 -08:00
cur.execute("SELECT $1", [1234]);
2022-02-03 18:02:50 -08:00
res = cur.fetchall()
2022-02-03 18:13:36 -08:00
print(res)
conn.commit()