(
cls,
statement: Executable,
compiler: SQLCompiler,
**kw: Any,
)
| 439 | |
| 440 | @classmethod |
| 441 | def create_for_statement( |
| 442 | cls, |
| 443 | statement: Executable, |
| 444 | compiler: SQLCompiler, |
| 445 | **kw: Any, |
| 446 | ) -> ORMCompileState: |
| 447 | return cls._create_orm_context( |
| 448 | cast("Union[Select, FromStatement]", statement), |
| 449 | toplevel=not compiler.stack, |
| 450 | compiler=compiler, |
| 451 | **kw, |
| 452 | ) |
| 453 | |
| 454 | @classmethod |
| 455 | def _create_orm_context( |
no test coverage detected