Testing if db_connection will work over tailscale. It does.

history-download
will king 4 years ago
parent 40a34ae1c3
commit 4bf9b4fab9

@ -1,10 +1,10 @@
import psycopg2 as psyco import psycopg2 as psyco
conn = psyco.connect(dbname="aact_db", user="root", host="localhost", password="root") conn = psyco.connect(dbname="aact_db", user="root", host="will-office", password="root")
curse = conn.cursor() curse = conn.cursor()
curse.execute("select * FROM http.responses") curse.execute("select * FROM http.responses LIMIT 100;")
print(curse.fetchall()) print(curse.fetchall())
curse.close() curse.close()

Loading…
Cancel
Save