tornado 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())

猜你喜欢

转载自www.cnblogs.com/tchaisheng/p/12307802.html