Custom Search

Monday, June 13, 2011

How to sqlalchemy print query for debug

How to sqlalchemy print query for debug


qry = DBsession.query(A).filter(A.id=2)
print "-------------", str(qry)

No comments:

Post a Comment