16 lines
315 B
Python
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() |