Commits

Mike Bayer committed 89b47b9

add connection.close()

Comments (0)

Files changed (1)

doc/build/orm/session.rst

             self.trans.rollback()
             self.session.close()
 
+            # return connection to the Engine
+            self.connection.close()
+
 Above, we issue :meth:`.Session.commit` as well as
 :meth:`.Transaction.rollback`. This is an example of where we take advantage
 of the :class:`.Connection` object's ability to maintain *subtransactions*, or