(self, sequence)
| 1642 | ) |
| 1643 | |
| 1644 | def _can_drop_sequence(self, sequence): |
| 1645 | effective_schema = self.connection.schema_for_object(sequence) |
| 1646 | return self.dialect.supports_sequences and ( |
| 1647 | (not self.dialect.sequences_optional or not sequence.optional) |
| 1648 | and ( |
| 1649 | not self.checkfirst & CheckFirst.SEQUENCES |
| 1650 | or self.dialect.has_sequence( |
| 1651 | self.connection, sequence.name, schema=effective_schema |
| 1652 | ) |
| 1653 | ) |
| 1654 | ) |
| 1655 | |
| 1656 | def visit_index(self, index, drop_ok=False): |
| 1657 | if not drop_ok and not self._can_drop_index(index): |
no test coverage detected