(cls, statement, from_statement)
| 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""" |
nothing calls this directly
no test coverage detected