From: Mike Bayer Date: Sat, 22 Apr 2017 20:43:31 +0000 (-0400) Subject: - edits X-Git-Tag: rel_1_2_0b1~92 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6560bf82f387ca53c79f91f93ae97e6594795da8;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - edits Change-Id: If2445c4cbcd7eb18e06823e8821940a391890979 --- diff --git a/doc/build/orm/loading_relationships.rst b/doc/build/orm/loading_relationships.rst index 1cebd46848..aaddb87f9b 100644 --- a/doc/build/orm/loading_relationships.rst +++ b/doc/build/orm/loading_relationships.rst @@ -69,12 +69,11 @@ at mapping time to take place in all cases where an object of the mapped type is loaded, in the absense of any query-level options that modify it. This is configured using the :paramref:`.relationship.lazy` parameter to :func:`.relationship`; common values for this parameter -include ``select``, ``joined``, and ``subquery``. +include ``"select"``, ``"joined"``, and ``"subquery"``. For example, to configure a relationship to use joined eager loading when the parent object is queried:: - # load the 'children' collection using LEFT OUTER JOIN class Parent(Base): __tablename__ = 'parent' @@ -87,7 +86,7 @@ rows fetched by adding a JOIN to the query for ``Parent`` objects. See :ref:`joined_eager_loading` for background on this style of loading. The default value of the :paramref:`.relationship.lazy` argument is -``select``, which indicates lazy loading. See :ref:`lazy_loading` for +``"select"``, which indicates lazy loading. See :ref:`lazy_loading` for further background. .. _relationship_loader_options: