class ORMSelectCompileState(ORMCompileState, SelectState): (source)
Undocumented
Class Method | all |
Undocumented |
Class Method | create |
compiler hook, we arrive here from compiler.visit_select() only. |
Class Method | determine |
Undocumented |
Class Method | from |
Undocumented |
Class Method | get |
Undocumented |
Class Variable | correlate |
Undocumented |
Class Variable | eager |
Undocumented |
Class Variable | multi |
Undocumented |
Instance Variable | attributes |
Undocumented |
Instance Variable | compile |
Undocumented |
Instance Variable | compound |
Undocumented |
Instance Variable | correlate |
Undocumented |
Instance Variable | create |
Undocumented |
Instance Variable | current |
Undocumented |
Instance Variable | dedupe |
Undocumented |
Instance Variable | distinct |
Undocumented |
Instance Variable | distinct |
Undocumented |
Instance Variable | eager |
Undocumented |
Instance Variable | eager |
Undocumented |
Instance Variable | extra |
Undocumented |
Instance Variable | for |
Undocumented |
Instance Variable | from |
Undocumented |
Instance Variable | global |
Undocumented |
Instance Variable | group |
Undocumented |
Instance Variable | label |
Undocumented |
Instance Variable | order |
Undocumented |
Instance Variable | primary |
Undocumented |
Instance Variable | secondary |
Undocumented |
Instance Variable | select |
Undocumented |
Instance Variable | statement |
Undocumented |
Instance Variable | use |
Undocumented |
Class Method | _create |
Creates a partial ORMSelectCompileState that includes the full collection of _MapperEntity and other _QueryEntity objects. |
Method | _adapt |
Undocumented |
Method | _adapt |
Undocumented |
Method | _adjust |
Apply extra criteria filtering. |
Method | _all |
Undocumented |
Method | _compound |
Undocumented |
Method | _dump |
Undocumented |
Method | _entity |
Return the 'entity' (mapper or AliasedClass) associated with the first QueryEntity, or alternatively the 'select from' entity if specified. |
Method | _get |
Undocumented |
Method | _get |
Undocumented |
Method | _get |
used only for legacy Query cases |
Method | _join |
Undocumented |
Method | _join |
transform the "right" side of the join as well as the onclause according to polymorphic mapping translations, aliasing on the query or on the join, special cases where the right and left side have overlapping tables. |
Method | _join |
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 |
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 |
When join conditions express a left side explicitly, determine where in our existing list of FROM clauses we should join towards, or if we need to make a new join, and if so is it from one of our existing entities. |
Method | _mapper |
return the Mapper associated with the first QueryEntity. |
Method | _only |
Undocumented |
Method | _only |
Undocumented |
Method | _select |
Undocumented |
Method | _set |
used only for legacy Query cases |
Method | _setup |
Undocumented |
Method | _simple |
Undocumented |
Class Variable | _already |
Undocumented |
Class Variable | _has |
Undocumented |
Class Variable | _has |
Undocumented |
Instance Variable | _entities |
Undocumented |
Instance Variable | _fallback |
Undocumented |
Instance Variable | _for |
Undocumented |
Instance Variable | _from |
Undocumented |
Instance Variable | _having |
Undocumented |
Instance Variable | _join |
Undocumented |
Instance Variable | _label |
Undocumented |
Instance Variable | _memoized |
Undocumented |
Instance Variable | _polymorphic |
Undocumented |
Instance Variable | _primary |
Undocumented |
Instance Variable | _where |
Undocumented |
Property | _select |
Undocumented |
Property | _should |
Undocumented |
Inherited from ORMCompileState
:
Class | default |
Undocumented |
Class Method | get |
Undocumented |
Class Method | orm |
Undocumented |
Class Method | orm |
Undocumented |
Method | __init__ |
Undocumented |
Class Method | _column |
Undocumented |
Method | _append |
Undocumented |
Method | _create |
given MapperEntity or ORMColumnEntity, setup polymorphic loading if called for by the Mapper. |
Method | _mapper |
Undocumented |
Property | _lead |
return all _MapperEntity objects in the lead entities collection. |
Inherited from AbstractORMCompileState
(via ORMCompileState
):
Class Method | orm |
Undocumented |
Class Variable | is |
Undocumented |
Inherited from SelectState
(via ORMCompileState
, AbstractORMCompileState
):
Class Method | get |
Undocumented |
Class Variable | __slots__ |
Undocumented |
Class Variable | default |
Undocumented |
Instance Variable | columns |
Undocumented |
Instance Variable | froms |
Undocumented |
Class Method | _normalize |
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 |
Undocumented |
Method | _get |
Return the full list of 'from' clauses to be displayed. |
Method | _get |
Undocumented |
Method | _memoized |
Undocumented |
Method | _setup |
Undocumented |
Instance Variable | _ambiguous |
Undocumented |
Inherited from MemoizedSlots
(via ORMCompileState
, AbstractORMCompileState
, SelectState
):
Method | __getattr__ |
Undocumented |
Method | _fallback |
Undocumented |
Inherited from CompileState
(via ORMCompileState
, AbstractORMCompileState
, SelectState
, MemoizedSlots
):
Class Method | plugin |
Undocumented |
Class Variable | plugins |
Undocumented |
Class Method | _get |
Undocumented |
def create_for_statement(cls, statement:
Union[ Select, FromStatement]
, compiler: Optional[ SQLCompiler]
, **kw: Any
) -> ORMSelectCompileState
:
(source)
¶
compiler hook, we arrive here from compiler.visit_select() only.
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.
Return the 'entity' (mapper or AliasedClass) associated with the first QueryEntity, or alternatively the 'select from' entity if specified.
transform the "right" side of the join as well as the onclause according to polymorphic mapping translations, aliasing on the query or on the join, special cases where the right and left side have overlapping tables.
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.
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)
When join conditions express a left side explicitly, determine where in our existing list of FROM clauses we should join towards, or if we need to make a new join, and if so is it from one of our existing entities.
Undocumented