Skip to content

Commit 6de925e

Browse files
committed
Use psycopg
1 parent 74c87f0 commit 6de925e

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

requirements.txt

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
aiofiles==24.1.0
2-
aiogram==3.18.0
2+
aiogram==3.19.0
33
aiohappyeyeballs==2.6.1
44
aiohttp==3.11.14
5-
aiopg==1.4.0
65
aiosignal==1.3.2
76
annotated-types==0.7.0
8-
async-timeout==4.0.3
97
attrs==25.3.0
108
certifi==2025.1.31
119
frozenlist==1.5.0
1210
idna==3.10
1311
magic-filter==1.0.12
14-
multidict==6.1.0
12+
multidict==6.2.0
1513
peewee==3.17.9
1614
peewee-async==1.1.0
1715
propcache==0.3.0
18-
psycopg2-binary==2.9.10
16+
psycopg==3.2.6
17+
psycopg-pool==3.2.6
1918
pydantic==2.10.6
2019
pydantic_core==2.27.2
2120
redis==5.2.1

src/models/db.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import peewee_async
22
from entities import POSTGRES_USER, POSTGRES_PASSWORD
33

4-
db = peewee_async.PooledPostgresqlDatabase('usmile',
5-
user=POSTGRES_USER,
6-
password=POSTGRES_PASSWORD,
7-
host="postgres",
8-
port=5432)
4+
db = peewee_async.PsycopgDatabase('usmile',
5+
user=POSTGRES_USER,
6+
password=POSTGRES_PASSWORD,
7+
host="postgres",
8+
port=5432)
99

1010

1111
class BaseModel(peewee_async.AioModel):

0 commit comments

Comments
 (0)