Drop all tables stored in this metadata. Conditional by default, will not attempt to drop tables not present in the target database. :param bind: A :class:`.Connection` or :class:`.Engine` used to access the database. :param tables: Op
(
self,
bind: _CreateDropBind,
tables: Optional[_typing_Sequence[Table]] = None,
checkfirst: Union[bool, CheckFirst] = CheckFirst.ALL,
)
| 6322 | ) |
| 6323 | |
| 6324 | def drop_all( |
| 6325 | self, |
| 6326 | bind: _CreateDropBind, |
| 6327 | tables: Optional[_typing_Sequence[Table]] = None, |
| 6328 | checkfirst: Union[bool, CheckFirst] = CheckFirst.ALL, |
| 6329 | ) -> None: |
| 6330 | """Drop all tables stored in this metadata. |
| 6331 | |
| 6332 | Conditional by default, will not attempt to drop tables not present in |
| 6333 | the target database. |
| 6334 | |
| 6335 | :param bind: |
| 6336 | A :class:`.Connection` or :class:`.Engine` used to access the |
| 6337 | database. |
| 6338 | |
| 6339 | :param tables: |
| 6340 | Optional list of ``Table`` objects, which is a subset of the |
| 6341 | total tables in the ``MetaData`` (others are ignored). |
| 6342 | |
| 6343 | :param checkfirst: A boolean value or instance of :class:`.CheckFirst`. |
| 6344 | Indicates which objects should be checked for within a separate pass |
| 6345 | before dropping schema objects. |
| 6346 | |
| 6347 | """ |
| 6348 | bind._run_ddl_visitor( |
| 6349 | ddl.SchemaDropper, self, checkfirst=checkfirst, tables=tables |
| 6350 | ) |
| 6351 | |
| 6352 | @property |
| 6353 | def schemas(self) -> _typing_Sequence[str]: |