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

Class CreateIndex

lib/sqlalchemy/sql/ddl.py:717–733  ·  view source on GitHub ↗

Represent a CREATE INDEX statement.

Source from the content-addressed store, hash-verified

715
716
717class 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
736class DropIndex(_DropBase["Index"]):

Calls

no outgoing calls