From ddb4aa2e0a747960368b7bc6e5d4dbe3eebe0139 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 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 -- 2.47.2