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

Method _should_create_for_compiler

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

Source from the content-addressed store, hash-verified

4160 self.comment = comment
4161
4162 def _should_create_for_compiler(
4163 self, compiler: DDLCompiler, **kw: Any
4164 ) -> bool:
4165 if self._create_rule is not None and not self._create_rule(compiler):
4166 return False
4167 elif self._ddl_if is not None:
4168 return self._ddl_if._should_execute(
4169 ddl.CreateConstraint(self), self, None, compiler=compiler, **kw
4170 )
4171 else:
4172 return True
4173
4174 @property
4175 def table(self) -> Table:

Callers 1

Calls 1

_should_executeMethod · 0.45

Tested by

no test coverage detected