From b585b9b56eb809b65df545e6852c8ee6cfe12c6a Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Tue, 11 Sep 2012 11:02:02 -0400 Subject: [PATCH] add connection.close() --- doc/build/orm/session.rst | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.47.3