Create a :class:`.DropIndex` construct. :param element: a :class:`_schema.Index` that's the subject of the DROP. :param if_exists: if True, an IF EXISTS operator will be applied to the construct. .. versionadded:: 1.4.0b2
(self, element: Index, if_exists: bool = False)
| 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 | |
| 1127 | class AddConstraint(_CreateBase["Constraint"]): |