MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / from_statement

Method from_statement

lib/sqlalchemy/orm/context.py:1541–1556  ·  view source on GitHub ↗
(cls, statement, from_statement)

Source from the content-addressed store, hash-verified

1539
1540 @classmethod
1541 def from_statement(cls, statement, from_statement):
1542 from_statement = coercions.expect(
1543 roles.ReturnsRowsRole,
1544 from_statement,
1545 apply_propagate_attrs=statement,
1546 )
1547
1548 stmt = FromStatement(statement._raw_columns, from_statement)
1549
1550 stmt.__dict__.update(
1551 _with_options=statement._with_options,
1552 _compile_state_funcs=statement._compile_state_funcs,
1553 _execution_options=statement._execution_options,
1554 _propagate_attrs=statement._propagate_attrs,
1555 )
1556 return stmt
1557
1558 def _set_select_from_alias(self):
1559 """used only for legacy Query cases"""

Callers

nothing calls this directly

Calls 2

FromStatementClass · 0.85
updateMethod · 0.45

Tested by

no test coverage detected