aio-libs / aio-libs/aiopg

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

未關閉
#910 3 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug
主要語言
Python
星號
1.4k
分支
170
PR 合併指標
30 天內沒有已合併 PR

描述

### 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

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。