Represent a CREATE INDEX statement.
| 715 | |
| 716 | |
| 717 | class CreateIndex(_CreateBase["Index"]): |
| 718 | """Represent a CREATE INDEX statement.""" |
| 719 | |
| 720 | __visit_name__ = "create_index" |
| 721 | |
| 722 | def __init__(self, element: Index, if_not_exists: bool = False) -> None: |
| 723 | """Create a :class:`.Createindex` construct. |
| 724 | |
| 725 | :param element: a :class:`_schema.Index` that's the subject |
| 726 | of the CREATE. |
| 727 | :param if_not_exists: if True, an IF NOT EXISTS operator will be |
| 728 | applied to the construct. |
| 729 | |
| 730 | .. versionadded:: 1.4.0b2 |
| 731 | |
| 732 | """ |
| 733 | super().__init__(element, if_not_exists=if_not_exists) |
| 734 | |
| 735 | |
| 736 | class DropIndex(_DropBase["Index"]): |
no outgoing calls