]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Add more docs for populate_existing(); link with_for_update
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 10 Sep 2020 15:56:34 +0000 (11:56 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 10 Sep 2020 16:18:36 +0000 (12:18 -0400)
commitccf8907d3675e4b183f4bcd98fb73ea72951e085
treefe0037e73ba55cc1589bcc3449f0d35663afd3b5
parent05957d6ace7129848af5883e4d8350afd389dd5b
Add more docs for populate_existing(); link with_for_update

The populate_existing() method is actually changing
to be an execution option, however it has almost no
mention in the narrative docs so add docs in terms of the
1.x version first, including that we mention you almost
definitely want to use this method if you are also using
with_for_update().

Fixes: #5572
Fixes: #4774
Change-Id: Ieca916400622c1ffc1ae81204132a02a0983594c
(cherry picked from commit e78c8f84958a031056684d7056aff0eab6ced226)
doc/build/faq/sessions.rst
doc/build/orm/session_basics.rst
doc/build/orm/session_state_management.rst
lib/sqlalchemy/orm/query.py
lib/sqlalchemy/orm/session.py