How not to create a pool regularly in asyncpg?
I am working with the asyncpg library. I have created a class in which I do everything necessary to work with the database. But there is a problem, how can I not create a pool regularly?
For example i did a some function that insert a new user in database. How to transfer pool to function with using my class DB?