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)

 增删改查

https://blog.csdn.net/qq_22918243/article/details/99859071

posted @ 2020-02-14 16:09  同窗的海生  阅读(513)  评论(0编辑  收藏  举报