You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
322 B
Python
16 lines
322 B
Python
# Description
|
|
# This program tests the ability to connect the the DB
|
|
#
|
|
|
|
import psycopg2 as psyco
|
|
|
|
conn = psyco.connect(dbname="aact_db", user="root", host="will-office", password="root")
|
|
|
|
curse = conn.cursor()
|
|
|
|
curse.execute("select * FROM http.responses LIMIT 100;")
|
|
print(curse.fetchall())
|
|
|
|
curse.close()
|
|
conn.close()
|