tornado peewee_async peewee-async
https://peewee-async.readthedocs.io/en/latest/peewee_async/examples.html
https://www.cnblogs.com/Victor-ZH/p/12052859.html
https://www.cnblogs.com/miaojiyao/articles/5217757.html
查询一个列中查询两个不同的值
query = RelationshipModel.select().where(RelationshipModel.userId == self.current_user, (RelationshipModel.relationship == 1) | (RelationshipModel.relationship == 2), ) mModels = await self.application.objects.execute(query.dicts())
https://www.jianshu.com/p/a7e639e62a16 给我思路count()
query_num = await self.application.objects.count(Query)