class LoaderCriteriaOption(CriteriaOption): (source)
Add additional WHERE criteria to the load for all occurrences of a particular entity. :class:`_orm.LoaderCriteriaOption` is invoked using the :func:`_orm.with_loader_criteria` function; see that function for details. .. versionadded:: 1.4
Method | __init__ |
Undocumented |
Method | __reduce__ |
Undocumented |
Method | get |
update additional entity criteria options in the given attributes dictionary. |
Method | process |
Apply a modification to a given :class:`.CompileState`. |
Method | process |
Apply a modification to a given :class:`.ORMCompileState`, given entities that were replaced by with_only_columns() or with_entities(). |
Class Variable | __slots__ |
Undocumented |
Instance Variable | deferred |
Undocumented |
Instance Variable | entity |
Undocumented |
Instance Variable | include |
Undocumented |
Instance Variable | propagate |
if True, indicate this option should be carried along to "secondary" SELECT statements that occur for relationship lazy loaders as well as attribute load / refresh operations. |
Instance Variable | root |
Undocumented |
Instance Variable | where |
Undocumented |
Class Method | _unreduce |
Undocumented |
Method | _all |
Undocumented |
Method | _resolve |
Undocumented |
Method | _should |
Undocumented |
Class Variable | _traverse |
Undocumented |
Instance Variable | _where |
Undocumented |
Inherited from CriteriaOption
:
Class Variable | _is |
Undocumented |
Inherited from CompileStateOption
(via CriteriaOption
):
Class Variable | _is |
Undocumented |
Inherited from HasCacheKey
(via CriteriaOption
, CompileStateOption
):
Class Variable | inherit |
Indicate if this :class:`.HasCacheKey` instance should make use of the cache key generation scheme used by its immediate superclass. |
Class Method | _generate |
generate cache key dispatcher for a new class. |
Class Method | _generate |
Undocumented |
Method | _gen |
return an optional cache key. |
Method | _generate |
return a cache key. |
Class Variable | _generated |
Undocumented |
Class Variable | _hierarchy |
private attribute which may be set to False to prevent the inherit_cache warning from being emitted for a hierarchy of subclasses. |
Class Variable | _is |
Undocumented |
Inherited from ORMOption
(via CriteriaOption
, CompileStateOption
, HasCacheKey
):
Method | _adapt |
adapt this option to the "uncached" version of itself in a loader strategy context. |
Class Variable | _is |
Undocumented |
Class Variable | _is |
Undocumented |
Class Variable | _is |
Undocumented |
Class Variable | _is |
Undocumented |
Inherited from ExecutableOption
(via CriteriaOption
, CompileStateOption
, HasCacheKey
, ORMOption
):
Class Variable | __visit |
Undocumented |
Method | _clone |
Create a shallow copy of this ExecutableOption. |
Inherited from HasCopyInternals
(via CriteriaOption
, CompileStateOption
, HasCacheKey
, ORMOption
, ExecutableOption
):
Method | _copy |
Reassign internal elements to be clones of themselves. |
Inherited from HasTraverseInternals
(via CriteriaOption
, CompileStateOption
, HasCacheKey
, ORMOption
, ExecutableOption
, HasCopyInternals
):
Method | get |
Return immediate child :class:`.visitors.HasTraverseInternals` elements of this :class:`.visitors.HasTraverseInternals`. |
Class Variable | _is |
Undocumented |
_EntityType[ Any]
, where_criteria: _ColumnExpressionArgument[ bool]
, loader_only: bool
= False, include_aliases: bool
= False, propagate_to_loaders: bool
= True, track_closure_variables: bool
= True):
(source)
¶
Undocumented
ORMCompileState
, mapper_entities: Iterable[ _MapperEntity]
):
(source)
¶
Apply a modification to a given :class:`.ORMCompileState`, given entities that were replaced by with_only_columns() or with_entities(). This method is part of the implementation of a particular :class:`.CompileStateOption` and is only invoked internally when an ORM query is compiled. .. versionadded:: 1.4.19
if True, indicate this option should be carried along to "secondary" SELECT statements that occur for relationship lazy loaders as well as attribute load / refresh operations.
def _unreduce(cls, entity, where_criteria, include_aliases, propagate_to_loaders): (source) ¶
Undocumented
_InternalEntityType[ Any]
) -> ColumnElement[ bool]
:
(source)
¶
Undocumented