Files
2024-12-12 13:21:43 +01:00

16 lines
315 B
Python

import psycopg2
def flush_pg():
conn = psycopg2.connect(
dbname="embeddings",
user="python",
password="PasswordPassword123",
host="localhost",
port="5555"
)
cur = conn.cursor()
cur.execute("drop table if exists dbtable;")
conn.commit()
conn.close()