.
Я правильно начал или нет ?
import asyncio
import asyncpg
import config
class Sqlither:
async def __init__(self):
self.connect = await asyncpg.connect(user=config.pg_user, password=config.pg_password,
database=config.pg_db, host='127.0.0.1')
async def test(self):
with self.connect:
..…....…...