class ORMCompileState(AbstractORMCompileState): (source)
Known subclasses: sqlalchemy.orm.context.ORMFromStatementCompileState
, sqlalchemy.orm.context.ORMSelectCompileState
Undocumented
Class | default |
Undocumented |
Class Method | create |
Create a context for a statement given a :class:`.Compiler`. |
Class Method | get |
Undocumented |
Class Method | orm |
Undocumented |
Class Method | orm |
Undocumented |
Method | __init__ |
Undocumented |
Class Variable | attributes |
Undocumented |
Class Variable | compile |
Undocumented |
Class Variable | create |
Undocumented |
Class Variable | dedupe |
Undocumented |
Class Variable | global |
Undocumented |
Class Variable | primary |
Undocumented |
Class Variable | secondary |
Undocumented |
Class Variable | select |
Undocumented |
Class Variable | statement |
Undocumented |
Class Variable | use |
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 |
Class Variable | _entities |
Undocumented |
Class Variable | _has |
Undocumented |
Class Variable | _label |
Undocumented |
Class Variable | _polymorphic |
Undocumented |
Class Variable | _primary |
Undocumented |
Property | _lead |
return all _MapperEntity objects in the lead entities collection. |
Inherited from AbstractORMCompileState
:
Class Method | orm |
Undocumented |
Class Variable | is |
Undocumented |
Inherited from CompileState
(via 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:
Union[ Select, FromStatement]
, compiler: Optional[ SQLCompiler]
, **kw: Any
) -> ORMCompileState
:
(source)
¶
sqlalchemy.orm.context.ORMFromStatementCompileState
, sqlalchemy.orm.context.ORMSelectCompileState
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().
def orm_pre_session_exec(cls, session, statement, params, execution_options, bind_arguments, is_pre_event): (source) ¶
Undocumented
def orm_setup_cursor_result(cls, session, statement, params, execution_options, bind_arguments, result): (source) ¶
Undocumented
sqlalchemy.orm.context.ORMFromStatementCompileState
, sqlalchemy.orm.context.ORMSelectCompileState
Undocumented
sqlalchemy.orm.context.ORMFromStatementCompileState
, sqlalchemy.orm.context.ORMSelectCompileState
Undocumented
sqlalchemy.orm.context.ORMFromStatementCompileState
, sqlalchemy.orm.context.ORMSelectCompileState
Undocumented
sqlalchemy.orm.context.ORMFromStatementCompileState
, sqlalchemy.orm.context.ORMSelectCompileState
Undocumented
sqlalchemy.orm.context.ORMFromStatementCompileState
, sqlalchemy.orm.context.ORMSelectCompileState
Undocumented
sqlalchemy.orm.context.ORMFromStatementCompileState
, sqlalchemy.orm.context.ORMSelectCompileState
Undocumented
sqlalchemy.orm.context.ORMFromStatementCompileState
, sqlalchemy.orm.context.ORMSelectCompileState
Undocumented
sqlalchemy.orm.context.ORMFromStatementCompileState
, sqlalchemy.orm.context.ORMSelectCompileState
Undocumented
sqlalchemy.orm.context.ORMFromStatementCompileState
, sqlalchemy.orm.context.ORMSelectCompileState
Undocumented
sqlalchemy.orm.context.ORMFromStatementCompileState
, sqlalchemy.orm.context.ORMSelectCompileState
Undocumented
def _column_naming_convention(cls, label_style:
SelectLabelStyle
, legacy: bool
) -> _LabelConventionCallable
:
(source)
¶
Undocumented
given MapperEntity or ORMColumnEntity, setup polymorphic loading if called for by the Mapper. As of #8168 in 2.0.0rc1, polymorphic adapters, which greatly increase the complexity of the query creation process, are not used at all except in the quasi-legacy cases of with_polymorphic referring to an alias and/or subquery. This would apply to concrete polymorphic loading, and joined inheritance where a subquery is passed to with_polymorphic (which is completely unnecessary in modern use).
sqlalchemy.orm.context.ORMFromStatementCompileState
, sqlalchemy.orm.context.ORMSelectCompileState
Undocumented
sqlalchemy.orm.context.ORMFromStatementCompileState
, sqlalchemy.orm.context.ORMSelectCompileState
Undocumented
sqlalchemy.orm.context.ORMFromStatementCompileState
, sqlalchemy.orm.context.ORMSelectCompileState
Undocumented
sqlalchemy.orm.context.ORMFromStatementCompileState
, sqlalchemy.orm.context.ORMSelectCompileState
Undocumented
sqlalchemy.orm.context.ORMFromStatementCompileState
, sqlalchemy.orm.context.ORMSelectCompileState
Undocumented