Files
Backend/utils/PostgressConnect.py
T
Kirill 35f18853fc feat(utils/PostgressConnect.py): Postgress connect Functional
Added Functions with connect to postgress db by link from enviroment
2025-10-23 23:00:00 +03:00

11 lines
186 B
Python

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