| Sep | OCT | Nov |
| 08 | ||
| 2019 | 2020 | 2021 |
COLLECTED BY
Collection: github.com
When given a textual json codec that yields 'null', the array encoder should generate b'["null"]' instead of b'["NULL"]' for a JSON[] type. Refs: #62392aa806
asyncio
framework. You can read more about asyncpg in an introductory
blog post.
asyncpg requires Python 3.5 or later and is supported for PostgreSQL
versions 9.2 to 12.
The above results are a geometric mean of benchmarks obtained with PostgreSQL
client driver benchmarking toolbench.
$ pip install asyncpg
import asyncio import asyncpg async def run(): conn = await asyncpg.connect(user='user', password='password', database='database', host='127.0.0.1') values = await conn.fetch('''SELECT * FROM mytable''') await conn.close() loop = asyncio.get_event_loop() loop.run_until_complete(run())