class documentation

class ORMCompileState(CompileState):

Known subclasses: sqlalchemy.orm.context.ORMFromStatementCompileState, sqlalchemy.orm.context.ORMSelectCompileState

View In Hierarchy

Undocumented

Class Method create​_for​_statement Create a context for a statement given a .Compiler.
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
Class Method ​_create​_entities​_collection 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:

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
Instance Variable statement Undocumented
@classmethod
def create_for_statement(cls, statement_container, compiler, **kw):

Create a context for a statement given a .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().

@classmethod
def get_column_descriptions(cls, statement):

Undocumented

@classmethod
def orm_pre_session_exec(cls, session, statement, params, execution_options, bind_arguments, is_reentrant_invoke):

Undocumented

@classmethod
def orm_setup_cursor_result(cls, session, statement, params, execution_options, bind_arguments, result):

Undocumented

@classmethod
def _column_naming_convention(cls, label_style, legacy):

Undocumented

@classmethod
def _create_entities_collection(cls, query, legacy):
def __init__(self, *arg, **kw):
def _append_dedupe_col_collection(self, obj, col_collection):

Undocumented

def _create_with_polymorphic_adapter(self, ext_info, selectable):

Undocumented

def _mapper_loads_polymorphically_with(self, mapper, adapter):

Undocumented

@property
_lead_mapper_entities =

return all _MapperEntity objects in the lead entities collection.

Does not include entities that have been replaced by with_entities(), with_only_columns()