I just started in this SQLAlchemy ORM, and I was wondering if after calling commit to the session, if you can still use this sesison to query and maybe even commit another time.
So for example
session = Session()
session.add(Foo())
session.commit()
print session.query(Foo).first()
session.add(Bar())
session.commit()
Will all this code work?
source
share