MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / drop

Method drop

lib/sqlalchemy/sql/schema.py:5730–5744  ·  view source on GitHub ↗

Issue a ``DROP`` statement for this :class:`.Index`, using the given :class:`.Connection` or :class:`.Engine` for connectivity. .. seealso:: :meth:`_schema.MetaData.drop_all`.

(
        self,
        bind: _CreateDropBind,
        checkfirst: Union[bool, CheckFirst] = CheckFirst.NONE,
    )

Source from the content-addressed store, hash-verified

5728 bind._run_ddl_visitor(ddl.SchemaGenerator, self, checkfirst=checkfirst)
5729
5730 def drop(
5731 self,
5732 bind: _CreateDropBind,
5733 checkfirst: Union[bool, CheckFirst] = CheckFirst.NONE,
5734 ) -> None:
5735 """Issue a ``DROP`` statement for this
5736 :class:`.Index`, using the given
5737 :class:`.Connection` or :class:`.Engine` for connectivity.
5738
5739 .. seealso::
5740
5741 :meth:`_schema.MetaData.drop_all`.
5742
5743 """
5744 bind._run_ddl_visitor(ddl.SchemaDropper, self, checkfirst=checkfirst)
5745
5746 def __repr__(self) -> str:
5747 exprs: _typing_Sequence[Any] # noqa: F842

Callers 2

test_has_indexMethod · 0.95
test_reservedMethod · 0.95

Calls 1

_run_ddl_visitorMethod · 0.45

Tested by 2

test_has_indexMethod · 0.76
test_reservedMethod · 0.76