asyncpg icon indicating copy to clipboard operation
asyncpg copied to clipboard

Update example of pool usage with aiohttp

Open ir4y opened this issue 4 years ago • 0 comments

The original example causes issues when I try to write tests with pytest. Database initialization and aiohttp runtime have different loops. Also, there is no code that closes all connections in the pool after usage.
The provided example resolves these issues.

ir4y avatar Jan 17 '22 19:01 ir4y