(name, schema_name, dialect_name)
| 131 | |
| 132 | |
| 133 | def _drop_ddl(name, schema_name, dialect_name): |
| 134 | if dialect_name.startswith("postgres"): |
| 135 | suffix = "CASCADE" |
| 136 | elif dialect_name.startswith("oracle"): |
| 137 | suffix = "CASCADE CONSTRAINTS PURGE" |
| 138 | else: |
| 139 | suffix = "" |
| 140 | if schema_name: |
| 141 | return sa.schema.DDL(f"DROP TABLE {schema_name}.{name} {suffix}") |
| 142 | else: |
| 143 | return sa.schema.DDL(f"DROP TABLE {name} {suffix}") |
| 144 | |
| 145 | |
| 146 | @log |
no test coverage detected