Skip to content

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

@547153905

Description

@547153905

Describe the bug

在启动FastAPI服务时,同步创建数据库连接池出错,代码如下:
image

image

To Reproduce

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

Expected behavior

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

Logs/tracebacks

暂无

Python Version

$ python --version
3.11

aiopg Version

$ python -m pip show aiopg
1.4.0

OS

windows 10
image

Additional context

No response

Code of Conduct

  • I agree to follow the aio-libs Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions