MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / setup_query

Method setup_query

lib/sqlalchemy/orm/interfaces.py:1548–1564  ·  view source on GitHub ↗

Establish column and other state for a given QueryContext. This method fulfills the contract specified by MapperProperty.setup(). StrategizedProperty delegates its setup() method directly to this method.

(
        self,
        compile_state: _ORMCompileState,
        query_entity: _MapperEntity,
        path: _AbstractEntityRegistry,
        loadopt: Optional[_LoadElement],
        adapter: Optional[ORMAdapter],
        **kwargs: Any,
    )

Source from the content-addressed store, hash-verified

1546 pass
1547
1548 def setup_query(
1549 self,
1550 compile_state: _ORMCompileState,
1551 query_entity: _MapperEntity,
1552 path: _AbstractEntityRegistry,
1553 loadopt: Optional[_LoadElement],
1554 adapter: Optional[ORMAdapter],
1555 **kwargs: Any,
1556 ) -> None:
1557 """Establish column and other state for a given QueryContext.
1558
1559 This method fulfills the contract specified by MapperProperty.setup().
1560
1561 StrategizedProperty delegates its setup() method
1562 directly to this method.
1563
1564 """
1565
1566 def create_row_processor(
1567 self,

Callers 1

setupMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected