]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Rework Session transaction FAQs
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 7 Jun 2019 18:50:22 +0000 (14:50 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 7 Jun 2019 18:54:05 +0000 (14:54 -0400)
commit98c483a8517c1b65d27f36182b47ce52d575ab08
tree667ea70900d29e873b56c59da14e4547eb799cf9
parentaba9781e10dbb00ee8c3e0a703b5c356e9674e0d
Rework Session transaction FAQs

In preparation for #4712, add an errors.rst code to the Session's
exception about waiting to be rolled back and rework the FAQ entry
to be much more succinct.  When this FAQ was first written, I found
it hard to describe why flush worked this way but as the use case is
clearer now, and #4712 actually showed it being confusing when it doesn't
work this way, we can make a simpler and more definitive statement
about this behavior.   Additionally, language about "subtransactions"
is minimized as I might be removing or de-emphasizing this concept in
2.0 (though maybe not as it does seem to work well).

Change-Id: I557872aff255b07e14dd843aa024e027a017afb8
(cherry picked from commit 4bd3cf69b2a7f5b1977e7be2b8588fd5d3424d11)
doc/build/errors.rst
doc/build/faq/sessions.rst
lib/sqlalchemy/orm/session.py