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