mirror of
https://github.com/postgresml/pgcat.git
synced 2026-03-23 01:16:30 +00:00
Less dirty servers & fix python
This commit is contained in:
1
tests/python/.gitignore
vendored
Normal file
1
tests/python/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
venv/
|
||||
1
tests/python/requirements.txt
Normal file
1
tests/python/requirements.txt
Normal file
@@ -0,0 +1 @@
|
||||
psycopg2==2.9.3
|
||||
9
tests/python/tests.py
Normal file
9
tests/python/tests.py
Normal file
@@ -0,0 +1,9 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user