How to run asyncpg (Postgresql) multiple queries simultaneously?
I'm using PostgreSQL & asyncpg. class PgDb: # noinspection SpellCheckingInspection def __init__(self, conn: asyncpg.connection.Connection): self.conn = conn async def select(self, sql: str, args: Union[list, Dict[str, Any]] = []) -> List[Dict[str, Any]]: sql, _args = self.__convert_placeholders(sql, args) return [dict(row) for row…