]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Add FAQ entry for retry subject; recipe w/ autocommit
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 19 Oct 2020 19:57:13 +0000 (15:57 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 19 Oct 2020 22:48:58 +0000 (18:48 -0400)
commite9051d9b44f078fdcc87cb2e35794f3888184bde
tree4ddfadff679a2c067b5a06cc428d13729ad6a9d8
parent3e49b8d0519aa024842206a2fb664a4ad83796d6
Add FAQ entry for retry subject; recipe w/ autocommit

In order to invalidate a connection within a Transaction
block and an execution context, we need to take advantage
of the simpler transaction design added in 1.4.  The recipe
can be done on 1.3 but it requires a lot more hacking
and isn't worth it.

Clearly since the recipe is part of the tests now we can
in the future consider adding a feature that's built
in for this case but it would have to absolutely guarantee
the DBAPI is in autocommit mode and also prevent
any "write" operations from taking place.   Recipe for now.

Fixes: #5657
Change-Id: Ia9ea8cced084d154e83e4d1c259e080b776ec38a
doc/build/core/connections.rst
doc/build/core/pooling.rst
doc/build/faq/connections.rst
test/engine/test_reconnect.py