From: Mike Bayer Date: Tue, 11 Sep 2012 15:02:02 +0000 (-0400) Subject: add connection.close() X-Git-Tag: rel_0_8_0b1~158 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b585b9b56eb809b65df545e6852c8ee6cfe12c6a;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git add connection.close() --- diff --git a/doc/build/orm/session.rst b/doc/build/orm/session.rst index 0784362fb7..c3989dc8a5 100644 --- a/doc/build/orm/session.rst +++ b/doc/build/orm/session.rst @@ -1555,6 +1555,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