class ORMOption(ExecutableOption):
Known subclasses: sqlalchemy.orm.interfaces.CompileStateOption
, sqlalchemy.orm.interfaces.MapperOption
, sqlalchemy.orm.interfaces.UserDefinedOption
Base class for option objects that are passed to ORM queries.
These options may be consumed by .Query.options
,
.Select.options
, or in a more general sense by any
.Executable.options
method. They are interpreted at
statement compile time or execution time in modern use. The
deprecated .MapperOption
is consumed at ORM query construction
time.
Class Variable | __slots__ |
Undocumented |
Class Variable | _is_compile_state |
Undocumented |
Class Variable | _is_criteria_option |
Undocumented |
Class Variable | _is_legacy_option |
Undocumented |
Class Variable | _is_strategy_option |
Undocumented |
Class Variable | propagate_to_loaders |
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. |
Inherited from ExecutableOption
:
Method | _clone |
Create a shallow copy of this ExecutableOption. |
Class Variable | __visit_name__ |
Undocumented |
Class Variable | _is_has_cache_key |
Undocumented |
Inherited from HasCopyInternals
(via ExecutableOption
):
Method | _copy_internals |
Reassign internal elements to be clones of themselves. |
bool
=
sqlalchemy.orm.strategy_options.Load
, sqlalchemy.orm.interfaces.MapperOption
, sqlalchemy.orm.interfaces.UserDefinedOption
, sqlalchemy.orm.util.LoaderCriteriaOption