MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / DropIndex

Class DropIndex

lib/sqlalchemy/sql/ddl.py:1108–1124  ·  view source on GitHub ↗

Represent a DROP INDEX statement.

Source from the content-addressed store, hash-verified

1106
1107
1108class DropIndex(_DropBase["Index"]):
1109 """Represent a DROP INDEX statement."""
1110
1111 __visit_name__ = "drop_index"
1112
1113 def __init__(self, element: Index, if_exists: bool = False) -> None:
1114 """Create a :class:`.DropIndex` construct.
1115
1116 :param element: a :class:`_schema.Index` that's the subject
1117 of the DROP.
1118 :param if_exists: if True, an IF EXISTS operator will be applied to the
1119 construct.
1120
1121 .. versionadded:: 1.4.0b2
1122
1123 """
1124 super().__init__(element, if_exists=if_exists)
1125
1126
1127class AddConstraint(_CreateBase["Constraint"]):

Calls

no outgoing calls