diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-09-11 11:02:02 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-09-11 11:02:02 -0400 |
| commit | b585b9b56eb809b65df545e6852c8ee6cfe12c6a (patch) | |
| tree | cd01abeca4c7da9283524353b096c892ac88ae9c /doc/build/orm | |
| parent | 7fa59a431e1a66bfd383fc45cee5b0196c645678 (diff) | |
| download | sqlalchemy-b585b9b56eb809b65df545e6852c8ee6cfe12c6a.tar.gz | |
add connection.close()
Diffstat (limited to 'doc/build/orm')
| -rw-r--r-- | doc/build/orm/session.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/build/orm/session.rst b/doc/build/orm/session.rst index 0784362fb..c3989dc8a 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 |
