Skip to content

Commit 89645c0

Browse files
committed
Update database driver references from asyncmy to aiomysql in README files
1 parent 2a6fce0 commit 89645c0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/db_management/README-zh-tw.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ uvicorn examples.db_management.app:app --host 127.0.0.1 --port 8000
130130
### 1. 安裝依賴套件
131131

132132
```bash
133-
pip install fastapi uvicorn sqlalchemy asyncmy redis pydantic PyJWT python-multipart
133+
pip install fastapi uvicorn sqlalchemy aiomysql redis pydantic PyJWT python-multipart
134134
```
135135

136136
### 2. 資料庫與Redis啟動
@@ -150,7 +150,7 @@ pip install fastapi uvicorn sqlalchemy asyncmy redis pydantic PyJWT python-multi
150150
### 3. 配置環境變數 (`.env`)
151151

152152
```
153-
DATABASE_URL=mysql+asyncmy://user:password@localhost/db_management
153+
DATABASE_URL=mysql+aiomysql://user:password@localhost/db_management
154154
REDIS_URL=redis://localhost
155155
JWT_SECRET_KEY=your_jwt_secret_key_here
156156
```

examples/db_management/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ Implements core database logic using asynchronous SQLAlchemy:
131131
Make sure to install required dependencies:
132132

133133
```bash
134-
pip install fastapi uvicorn sqlalchemy asyncmy redis pydantic PyJWT python-multipart
134+
pip install fastapi uvicorn sqlalchemy aiomysql redis pydantic PyJWT python-multipart
135135
```
136136

137137
### 2. **Setup and Run Redis**

0 commit comments

Comments
 (0)