db.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:wednesday 作者: wcauchois 项目源码 文件源码
def test_pubsub():
    async with create_pool(get_db_url()) as e:
        async with e.acquire() as listen_conn:
            listener = listen_helper(listen_conn)
            db = Database()
            await db.startup()
            await asyncio.gather(listener, db.insert_post(parent_id=290, content='testing notify'))
            print("listen/notify done!")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号