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

Method drop

lib/sqlalchemy/sql/schema.py:1291–1301  ·  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: bool = False)

Source from the content-addressed store, hash-verified

1289 bind._run_ddl_visitor(ddl.SchemaGenerator, self, checkfirst=checkfirst)
1290
1291 def drop(self, bind: _CreateDropBind, checkfirst: bool = False) -> None:
1292 """Issue a ``DROP`` statement for this
1293 :class:`_schema.Table`, using the given
1294 :class:`.Connection` or :class:`.Engine` for connectivity.
1295
1296 .. seealso::
1297
1298 :meth:`_schema.MetaData.drop_all`.
1299
1300 """
1301 bind._run_ddl_visitor(ddl.SchemaDropper, self, checkfirst=checkfirst)
1302
1303 @util.deprecated(
1304 "1.4",

Calls 1

_run_ddl_visitorMethod · 0.45