Skip to content

Instantly share code, notes, and snippets.

View solyard's full-sized avatar
💫
Shooting stars

Vladislav solyard

💫
Shooting stars
  • Russia
View GitHub Profile
package main
import (
"fmt"
"io/ioutil"
"log"
"net/http"
"sync"
)
import asyncpg
import ujson
class Transaction:
def __init__(self, pool):
self.pool = pool
async def __aenter__(self):
self.acquire_context = self.pool.acquire()