diff options
| author | sanjana <sanjana0796@gmail.com> | 2019-02-19 23:07:12 -0500 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2019-02-20 17:08:34 -0500 |
| commit | c89a93e9530511d54fa73c76c32cee11eaa418df (patch) | |
| tree | 8bde4bca9595bf4c79af3a02a793192ccc42590d /doc | |
| parent | d71f34cb2a28e8dfc410bc5bec68372be6d7c333 (diff) | |
| download | sqlalchemy-c89a93e9530511d54fa73c76c32cee11eaa418df.tar.gz | |
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
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/build/changelog/unreleased_13/4316.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/build/changelog/unreleased_13/4316.rst b/doc/build/changelog/unreleased_13/4316.rst new file mode 100644 index 000000000..dfab94043 --- /dev/null +++ b/doc/build/changelog/unreleased_13/4316.rst @@ -0,0 +1,8 @@ +.. change:: + :tags: feature, orm + :tickets: 4316 + + 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. |
