Files
Backend/utils/PostgressConnect.py
T

11 lines
179 B
Python

import psycopg2
import os
def PSQLConnect():
conn = psycopg2.connect(os.getenv('POSTGRES_URL'))
return conn
def PSQLCursor(conn):
cur = conn.cursor()
return cur