MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / create_for_statement

Method create_for_statement

lib/sqlalchemy/orm/context.py:455–466  ·  view source on GitHub ↗
(
        cls,
        statement: Executable,
        compiler: SQLCompiler,
        **kw: Any,
    )

Source from the content-addressed store, hash-verified

453
454 @classmethod
455 def create_for_statement(
456 cls,
457 statement: Executable,
458 compiler: SQLCompiler,
459 **kw: Any,
460 ) -> _ORMCompileState:
461 return cls._create_orm_context(
462 cast("Union[Select, FromStatement]", statement),
463 toplevel=not compiler.stack,
464 compiler=compiler,
465 **kw,
466 )
467
468 @classmethod
469 def _create_orm_context(

Callers 1

create_for_statementMethod · 0.45

Calls 2

castFunction · 0.50
_create_orm_contextMethod · 0.45

Tested by

no test coverage detected