From: Mike Bayer Date: Tue, 11 Sep 2012 15:02:02 +0000 (-0400) Subject: add connection.close() X-Git-Tag: rel_0_7_9~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ddb4aa2e0a747960368b7bc6e5d4dbe3eebe0139;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git add connection.close() --- diff --git a/doc/build/orm/session.rst b/doc/build/orm/session.rst index d5a471fa1b..38d508a9c1 100644 --- a/doc/build/orm/session.rst +++ b/doc/build/orm/session.rst @@ -1490,6 +1490,9 @@ entire database interaction is rolled back:: 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