asyncpg
asyncpg copied to clipboard
Update example of pool usage with aiohttp
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.