File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11from fastapi import FastAPI
22import uvicorn
3- from motor . motor_asyncio import AsyncIOMotorClient
3+ from pymongo import AsyncMongoClient
44from config import settings
55
66from apps .todo .routers import router as todo_router
1010
1111@app .on_event ("startup" )
1212async def startup_db_client ():
13- app .mongodb_client = AsyncIOMotorClient (settings .DB_URL )
13+ app .mongodb_client = AsyncMongoClient (settings .DB_URL )
1414 app .mongodb = app .mongodb_client [settings .DB_NAME ]
1515
1616
Original file line number Diff line number Diff line change 33pydantic
44
55# Database
6- motor [srv]
6+ pymongo [srv]
77
88# Development
99pip-tools
Original file line number Diff line number Diff line change @@ -58,8 +58,6 @@ markupsafe==2.1.5
5858 # via jinja2
5959mdurl == 0.1.2
6060 # via markdown-it-py
61- motor [srv ]== 3.4.0
62- # via -r requirements.in
6361mypy-extensions == 1.0.0
6462 # via black
6563orjson == 3.10.3
@@ -82,8 +80,8 @@ pydantic-core==2.18.4
8280 # via pydantic
8381pygments == 2.18.0
8482 # via rich
85- pymongo [srv ]== 4.7.3
86- # via motor
83+ pymongo [srv ]== 4.13.1
84+ # via -r requirements.in
8785pyproject-hooks == 1.1.0
8886 # via
8987 # build
You can’t perform that action at this time.
0 commit comments