MagicStack / asyncpg

A fast PostgreSQL Database Client Library for Python/asyncio.
Apache License 2.0
6.99k stars 404 forks source link

Create example codes to demo how to use asyncpg in server and non server env by global connection pool #1111

Open wangmarkqi opened 10 months ago

wangmarkqi commented 10 months ago

I use pymongo and fastapi a lot. When i first to asyncpg, i can not find a quick start to tell me how to use this async lib in both server and non server env. So i provide this pr for newbie like me for reference.