MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / lazyload

Method lazyload

lib/sqlalchemy/orm/strategy_options.py:420–434  ·  view source on GitHub ↗

Indicate that the given attribute should be loaded using "lazy" loading. This function is part of the :class:`_orm.Load` interface and supports both method-chained and standalone operation. .. seealso:: :ref:`loading_toplevel` :ref:`lazy_lo

(self, attr: _AttrType)

Source from the content-addressed store, hash-verified

418 )
419
420 def lazyload(self, attr: _AttrType) -> Self:
421 """Indicate that the given attribute should be loaded using "lazy"
422 loading.
423
424 This function is part of the :class:`_orm.Load` interface and supports
425 both method-chained and standalone operation.
426
427 .. seealso::
428
429 :ref:`loading_toplevel`
430
431 :ref:`lazy_loading`
432
433 """
434 return self._set_relationship_strategy(attr, {"lazy": "select"})
435
436 def immediateload(
437 self,

Callers 1

_lazyload_reverseMethod · 0.45

Calls 1

Tested by

no test coverage detected