class ORMFromStatementCompileState(ORMCompileState): (source)
Undocumented
Class Method | create |
Create a context for a statement given a :class:`.Compiler`. |
Method | setup |
used by BulkORMInsert (and Update / Delete?) to set up a handler for RETURNING to return ORM objects and expressions |
Class Variable | compound |
Undocumented |
Class Variable | eager |
Undocumented |
Class Variable | multi |
Undocumented |
Instance Variable | attributes |
Undocumented |
Instance Variable | compile |
Undocumented |
Instance Variable | create |
Undocumented |
Instance Variable | current |
Undocumented |
Instance Variable | dedupe |
Undocumented |
Instance Variable | dml |
Undocumented |
Instance Variable | extra |
Undocumented |
Instance Variable | global |
Undocumented |
Instance Variable | is |
Undocumented |
Instance Variable | order |
Undocumented |
Instance Variable | primary |
Undocumented |
Instance Variable | requested |
Undocumented |
Instance Variable | secondary |
Undocumented |
Instance Variable | select |
Undocumented |
Instance Variable | statement |
Undocumented |
Instance Variable | statement |
Undocumented |
Instance Variable | use |
Undocumented |
Method | _adapt |
Undocumented |
Method | _get |
Undocumented |
Class Variable | _from |
Undocumented |
Class Variable | _has |
Undocumented |
Class Variable | _has |
Undocumented |
Instance Variable | _entities |
Undocumented |
Instance Variable | _fallback |
Undocumented |
Instance Variable | _label |
Undocumented |
Instance Variable | _polymorphic |
Undocumented |
Instance Variable | _primary |
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 |
Class Method | _create |
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 |
Inherited from CompileState
(via ORMCompileState
, AbstractORMCompileState
):
Class Method | get |
Undocumented |
Class Method | plugin |
Undocumented |
Class Variable | __slots__ |
Undocumented |
Class Variable | plugins |
Undocumented |
Class Method | _get |
Undocumented |
Class Variable | _ambiguous |
Undocumented |
def create_for_statement(cls, statement_container:
Union[ Select, FromStatement]
, compiler: Optional[ SQLCompiler]
, **kw: Any
) -> ORMFromStatementCompileState
:
(source)
¶
Create a context for a statement given a :class:`.Compiler`. This method is always invoked in the context of SQLCompiler.process(). For a Select object, this would be invoked from SQLCompiler.visit_select(). For the special FromStatement object used by Query to indicate "Query.from_statement()", this is called by FromStatement._compiler_dispatch() that would be called by SQLCompiler.process().
used by BulkORMInsert (and Update / Delete?) to set up a handler for RETURNING to return ORM objects and expressions