MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _should_create_for_compiler

Method _should_create_for_compiler

lib/sqlalchemy/sql/schema.py:4542–4552  ·  view source on GitHub ↗
(
        self, compiler: DDLCompiler, **kw: Any
    )

Source from the content-addressed store, hash-verified

4540 self.comment = comment
4541
4542 def _should_create_for_compiler(
4543 self, compiler: DDLCompiler, **kw: Any
4544 ) -> bool:
4545 if self._create_rule is not None and not self._create_rule(compiler):
4546 return False
4547 elif self._ddl_if is not None:
4548 return self._ddl_if._should_execute(
4549 ddl.CreateConstraint(self), self, None, compiler=compiler, **kw
4550 )
4551 else:
4552 return True
4553
4554 @property
4555 def table(self) -> Table:

Callers 1

Calls 1

_should_executeMethod · 0.45

Tested by

no test coverage detected