MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / CreateIndex

Class CreateIndex

lib/sqlalchemy/sql/ddl.py:1089–1105  ·  view source on GitHub ↗

Represent a CREATE INDEX statement.

Source from the content-addressed store, hash-verified

1087
1088
1089class CreateIndex(_CreateBase["Index"]):
1090 """Represent a CREATE INDEX statement."""
1091
1092 __visit_name__ = "create_index"
1093
1094 def __init__(self, element: Index, if_not_exists: bool = False) -> None:
1095 """Create a :class:`.Createindex` construct.
1096
1097 :param element: a :class:`_schema.Index` that's the subject
1098 of the CREATE.
1099 :param if_not_exists: if True, an IF NOT EXISTS operator will be
1100 applied to the construct.
1101
1102 .. versionadded:: 1.4.0b2
1103
1104 """
1105 super().__init__(element, if_not_exists=if_not_exists)
1106
1107
1108class DropIndex(_DropBase["Index"]):

Calls

no outgoing calls