我正在使用 ponyORM 并查询 PeopleModel”,例如:
first_name = "avi"
sqlObject = select(p for p in PeopleModel if raw_sql('( lower(first_name) = lower($first_name))
sqlObject 对象按预期返回 PeopleModel 列表,并且非常完美。现在我想打印所有 PeopleModel 值,我希望这样的东西可以工作:
for people_model_key,people_model_value in sqlObject.items():
print(people_model_value)
但它不起作用..
我如何打印所有 people_model 值?非常感谢,