Files
Backend/utils/PostgressConnect.py
T

11 lines
179 B
Python
Raw Normal View History

import psycopg2
import os
def PSQLConnect():
2025-10-26 14:55:43 +03:00
conn = psycopg2.connect(os.getenv('POSTGRES_URL'))
return conn
def PSQLCursor(conn):
cur = conn.cursor()
return cur