]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Add ORM documentation for as_comparison()
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 25 Apr 2019 15:46:31 +0000 (10:46 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 25 Apr 2019 15:51:30 +0000 (10:51 -0500)
commitb954be661bdea254d86481e9bd31f2a84fadaa7a
treec65734d197118d56492e635be770036575f0ea03
parent710ff570626949f9f01c518c2976a0e762876713
Add ORM documentation for as_comparison()

In #3831 we added the ability for SQL functions to be used in
primaryjoin conditions as the source of comparison, however we
didn't add documentation from the main relationship docs so
nobody could find it unless they read the migration notes.
Since the two use cases that have come up for this are
materialized path with string functions, and geometry functions,
add the example based on the use case requested in
https://github.com/geoalchemy/geoalchemy2/issues/220#issuecomment-486709055

This example hasn't been tested yet and is subject to
revision.

Change-Id: I410d8ffade3f17cf616fc5056f27d7d32092207b
doc/build/orm/join_conditions.rst