mirror of
https://github.com/postgresml/pgcat.git
synced 2026-03-23 01:16:30 +00:00
9 lines
169 B
Python
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) |