MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / create_for_statement

Method create_for_statement

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

Source from the content-addressed store, hash-verified

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(

Callers 1

create_for_statementMethod · 0.45

Calls 2

castFunction · 0.85
_create_orm_contextMethod · 0.45

Tested by

no test coverage detected