Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有可能(如何?)在 peewee 中以编程方式构建选择查询?关键是根据需要添加 .where() 子句。
query = SomeThing.select() if foo: query = query.where(SomeThing.value == 'foo') else: query = query.where(...)