Sqlalchemy keep object while using func.sum

后端 未结 0 1508
南笙
南笙 2021-02-02 14:42

I\'m trying to use the func.sum( function while still keeping the object as output for serialization with Marshmallow.

query = (
session.query(Employee, func.sum(         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题