class ORMSelectCompileState(ORMCompileState, SelectState):
Undocumented
Class Method | all_selected_columns |
Undocumented |
Class Method | create_for_statement |
compiler hook, we arrive here from compiler.visit_select() only. |
Class Method | determine_last_joined_entity |
Undocumented |
Class Method | from_statement |
Undocumented |
Class Method | get_columns_clause_froms |
Undocumented |
Class Method | _create_entities_collection |
Creates a partial ORMSelectCompileState that includes the full collection of _MapperEntity and other _QueryEntity objects. |
Method | _adapt_aliased_generation |
Undocumented |
Method | _adapt_col_list |
Undocumented |
Method | _adapt_polymorphic_element |
Undocumented |
Method | _adjust_for_extra_criteria |
Apply extra criteria filtering. |
Method | _all_equivs |
Undocumented |
Method | _compound_eager_statement |
Undocumented |
Method | _entity_zero |
Return the 'entity' (mapper or AliasedClass) associated with the first QueryEntity, or alternatively the 'select from' entity if specified. |
Method | _get_current_adapter |
Undocumented |
Method | _get_extra_criteria |
Undocumented |
Method | _get_select_from_alias_from_obj |
Undocumented |
Method | _join |
Undocumented |
Method | _join_check_and_adapt_right_side |
No summary |
Method | _join_determine_implicit_left_side |
When join conditions don't express the left side explicitly, determine if an existing FROM or entity in this query can serve as the left hand side. |
Method | _join_left_to_right |
given raw "left", "right", "onclause" parameters consumed from a particular key within _join(), add a real ORMJoin object to our _from_obj list (or augment an existing one) |
Method | _join_place_explicit_left_side |
No summary |
Method | _joinpoint_zero |
Undocumented |
Method | _legacy_join |
consumes arguments from join() or outerjoin(), places them into a consistent format with which to form the actual JOIN constructs. |
Method | _mapper_zero |
return the Mapper associated with the first QueryEntity. |
Method | _only_entity_zero |
Undocumented |
Method | _only_full_mapper_zero |
Undocumented |
Method | _reset_joinpoint |
Undocumented |
Method | _select_statement |
Undocumented |
Method | _set_select_from_alias |
Undocumented |
Method | _setup_for_generate |
Undocumented |
Method | _setup_with_polymorphics |
Undocumented |
Method | _simple_statement |
Undocumented |
Method | _update_joinpoint |
Undocumented |
Class Variable | _has_mapper_entities |
Undocumented |
Class Variable | _has_orm_entities |
Undocumented |
Class Variable | correlate_except |
Undocumented |
Class Variable | multi_row_eager_loaders |
Undocumented |
Instance Variable | _aliased_generations |
Undocumented |
Instance Variable | _entities |
Undocumented |
Instance Variable | _fallback_from_clauses |
Undocumented |
Instance Variable | _for_update_arg |
Undocumented |
Instance Variable | _from_obj_alias |
Undocumented |
Instance Variable | _having_criteria |
Undocumented |
Instance Variable | _join_entities |
Undocumented |
Instance Variable | _joinpath |
Undocumented |
Instance Variable | _joinpoint |
Undocumented |
Instance Variable | _label_convention |
Undocumented |
Instance Variable | _memoized_entities |
Undocumented |
Instance Variable | _no_yield_pers |
Undocumented |
Instance Variable | _polymorphic_adapters |
Undocumented |
Instance Variable | _primary_entity |
Undocumented |
Instance Variable | _where_criteria |
Undocumented |
Instance Variable | _with_polymorphic_adapt_map |
Undocumented |
Instance Variable | attributes |
Undocumented |
Instance Variable | compile_options |
Undocumented |
Instance Variable | compound_eager_adapter |
Undocumented |
Instance Variable | correlate |
Undocumented |
Instance Variable | create_eager_joins |
Undocumented |
Instance Variable | current_path |
Undocumented |
Instance Variable | dedupe_columns |
Undocumented |
Instance Variable | distinct |
Undocumented |
Instance Variable | distinct_on |
Undocumented |
Instance Variable | eager_joins |
Undocumented |
Instance Variable | eager_order_by |
Undocumented |
Instance Variable | extra_criteria_entities |
Undocumented |
Instance Variable | for_statement |
Undocumented |
Instance Variable | from_clauses |
Undocumented |
Instance Variable | global_attributes |
Undocumented |
Instance Variable | group_by |
Undocumented |
Instance Variable | label_style |
Undocumented |
Instance Variable | order_by |
Undocumented |
Instance Variable | primary_columns |
Undocumented |
Instance Variable | secondary_columns |
Undocumented |
Instance Variable | select_statement |
Undocumented |
Instance Variable | statement |
Undocumented |
Instance Variable | use_legacy_query_style |
Undocumented |
Property | _select_args |
Undocumented |
Property | _should_nest_selectable |
Undocumented |
Inherited from ORMCompileState
:
Class Method | get_column_descriptions |
Undocumented |
Class Method | orm_pre_session_exec |
Undocumented |
Class Method | orm_setup_cursor_result |
Undocumented |
Class | default_compile_options |
Undocumented |
Class Method | _column_naming_convention |
Undocumented |
Method | __init__ |
Undocumented |
Method | _append_dedupe_col_collection |
Undocumented |
Method | _create_with_polymorphic_adapter |
Undocumented |
Method | _mapper_loads_polymorphically_with |
Undocumented |
Property | _lead_mapper_entities |
return all _MapperEntity objects in the lead entities collection. |
Inherited from CompileState
(via ORMCompileState
):
Class Method | get_plugin_class |
Undocumented |
Class Method | plugin_for |
Undocumented |
Class Method | _get_plugin_class_for_plugin |
Undocumented |
Class Variable | __slots__ |
Undocumented |
Class Variable | plugins |
Undocumented |
Inherited from SelectState
:
Class Method | get_column_descriptions |
Undocumented |
Class | default_select_compile_options |
Undocumented |
Class Method | _column_naming_convention |
Undocumented |
Class Method | _normalize_froms |
given an iterable of things to select FROM, reduce them to what would actually render in the FROM clause of a SELECT. |
Class Method | _plugin_not_implemented |
Undocumented |
Method | __init__ |
Undocumented |
Method | _get_display_froms |
Return the full list of 'from' clauses to be displayed. |
Method | _get_froms |
Undocumented |
Method | _memoized_attr__label_resolve_dict |
Undocumented |
Method | _setup_joins |
Undocumented |
Class Variable | __slots__ |
Undocumented |
Instance Variable | columns_plus_names |
Undocumented |
Instance Variable | froms |
Undocumented |
Inherited from MemoizedSlots
(via SelectState
):
Method | __getattr__ |
Undocumented |
Method | _fallback_getattr |
Undocumented |
Inherited from CompileState
(via SelectState
):
Class Method | get_plugin_class |
Undocumented |
Class Method | plugin_for |
Undocumented |
Class Method | _get_plugin_class_for_plugin |
Undocumented |
Class Variable | plugins |
Undocumented |
Undocumented
Creates a partial ORMSelectCompileState that includes the full collection of _MapperEntity and other _QueryEntity objects.
Supports a few remaining use cases that are pre-compilation but still need to gather some of the column / adaption information.
Apply extra criteria filtering.
For all distinct single-table-inheritance mappers represented in the columns clause of this query, as well as the "select from entity", add criterion to the WHERE clause of the given QueryContext such that only the appropriate subtypes are selected from the total results.
Additionally, add WHERE criteria originating from LoaderCriteriaOptions associated with the global context.