]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Add support for key-word based get()
authorsanjana <sanjana0796@gmail.com>
Wed, 20 Feb 2019 04:07:12 +0000 (23:07 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 20 Feb 2019 22:08:34 +0000 (17:08 -0500)
commitc89a93e9530511d54fa73c76c32cee11eaa418df
tree8bde4bca9595bf4c79af3a02a793192ccc42590d
parentd71f34cb2a28e8dfc410bc5bec68372be6d7c333
Add support for key-word based get()

The :meth:`.Query.get` method can now accept a dictionary of attribute keys
and values as a means of indicating the primary key value to load; is
particularly useful for composite primary keys.  Pull request courtesy
Sanjana S.

Fixes: #4316
Closes: #4505
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/4505
Pull-request-sha: cfa8297ad2490be9eae24ec8b1a691e43cd75868

Change-Id: Ib19e7d51599a36f4878119c2f801c5c694793422
doc/build/changelog/unreleased_13/4316.rst [new file with mode: 0644]
lib/sqlalchemy/orm/query.py
test/orm/test_query.py