mirror of
https://github.com/postgresml/pgcat.git
synced 2026-03-23 01:16:30 +00:00
11 lines
191 B
Python
11 lines
191 B
Python
import psycopg2
|
|
|
|
conn = psycopg2.connect("postgres://random:password@127.0.0.1:5433/db")
|
|
cur = conn.cursor()
|
|
|
|
cur.execute("SELECT $1", [1234]);
|
|
res = cur.fetchall()
|
|
|
|
print(res)
|
|
|
|
conn.commit() |