MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / DropTable

Class DropTable

lib/sqlalchemy/sql/ddl.py:685–702  ·  view source on GitHub ↗

Represent a DROP TABLE statement.

Source from the content-addressed store, hash-verified

683
684
685class DropTable(_DropBase["Table"]):
686 """Represent a DROP TABLE statement."""
687
688 __visit_name__ = "drop_table"
689
690 def __init__(self, element: Table, if_exists: bool = False) -> None:
691 """Create a :class:`.DropTable` construct.
692
693 :param element: a :class:`_schema.Table` that's the subject
694 of the DROP.
695 :param on: See the description for 'on' in :class:`.DDL`.
696 :param if_exists: if True, an IF EXISTS operator will be applied to the
697 construct.
698
699 .. versionadded:: 1.4.0b2
700
701 """
702 super().__init__(element, if_exists=if_exists)
703
704
705class CreateSequence(_CreateBase["Sequence"]):

Callers 2

visit_tableMethod · 0.85
drop_all_tablesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected