MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / __init__

Method __init__

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

Create a :class:`.Createindex` construct. :param element: a :class:`_schema.Index` that's the subject of the CREATE. :param if_not_exists: if True, an IF NOT EXISTS operator will be applied to the construct. .. versionadded:: 1.4.0b2

(self, element: Index, if_not_exists: bool = False)

Source from the content-addressed store, hash-verified

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"]):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected