Files
habr-article-API/src/DBmodel.py
n0body 16eccddb59 Hotfix + config optimization
- Fixed a bug that didn't let any function receive connection objects
- Added uvicorn logging level to config
2025-09-06 01:09:30 +03:00

8 lines
110 B
Python

import psycopg2
class DataBase:
connection: psycopg2._psycopg.connection | None = None
db = DataBase()