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

Method drop

lib/sqlalchemy/sql/schema.py:1553–1567  ·  view source on GitHub ↗

Issue a ``DROP`` statement for this :class:`_schema.Table`, 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

1551 bind._run_ddl_visitor(ddl.SchemaGenerator, self, checkfirst=checkfirst)
1552
1553 def drop(
1554 self,
1555 bind: _CreateDropBind,
1556 checkfirst: Union[bool, CheckFirst] = CheckFirst.NONE,
1557 ) -> None:
1558 """Issue a ``DROP`` statement for this
1559 :class:`_schema.Table`, using the given
1560 :class:`.Connection` or :class:`.Engine` for connectivity.
1561
1562 .. seealso::
1563
1564 :meth:`_schema.MetaData.drop_all`.
1565
1566 """
1567 bind._run_ddl_visitor(ddl.SchemaDropper, self, checkfirst=checkfirst)
1568
1569 @util.deprecated(
1570 "1.4",

Callers 15

test_has_table_cacheMethod · 0.95
test_has_indexMethod · 0.95
test_nolength_stringMethod · 0.95
test_checkfirst_tableMethod · 0.95
test_generative_casesMethod · 0.95
test_create_tableMethod · 0.95
test_create_behaviorMethod · 0.95
test_drops_on_tableMethod · 0.95

Calls 1

_run_ddl_visitorMethod · 0.45

Tested by 15

test_has_table_cacheMethod · 0.76
test_has_indexMethod · 0.76
test_nolength_stringMethod · 0.76
test_checkfirst_tableMethod · 0.76
test_generative_casesMethod · 0.76
test_create_tableMethod · 0.76
test_create_behaviorMethod · 0.76
test_drops_on_tableMethod · 0.76