(
self, compiler: DDLCompiler, **kw: Any
)
| 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: |
no test coverage detected