aio-libs / aio-libs/aiopg

在创建数据库连接池时,抛出未实现的错误。

Đang mở
#910 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
Python
Star
1.4k
Fork
170
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### Describe the bug

在启动FastAPI服务时,同步创建数据库连接池出错,代码如下:
![image](https://github.com/user-attachments/assets/7b0e0c33-e2dd-493d-96db-b15a6f740729)

![image](https://github.com/user-attachments/assets/891cecf4-29b9-4bed-ad66-f6720271324a)

### To Reproduce

1、项目中引入FastAPI,在实例化FastAPI时,在lifespan方法中,实现异步创建aiopg数据库连接池。

### Expected behavior

成功创建PG数据库连接池。

### Logs/tracebacks

```python-traceback
暂无
```

### Python Version

```console
$ python --version
3.11
```

### aiopg Version

```console
$ python -m pip show aiopg
1.4.0
```

### OS

windows 10
![image](https://github.com/user-attachments/assets/762982bc-a445-48f1-8b56-f515535638e9)

### Additional context

_No response_

### Code of Conduct

- [X] I agree to follow the aio-libs Code of Conduct

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.