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

Method drop

lib/sqlalchemy/sql/schema.py:4335–4342  ·  view source on GitHub ↗

Drops this sequence from the database.

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

Source from the content-addressed store, hash-verified

4333 bind._run_ddl_visitor(ddl.SchemaGenerator, self, checkfirst=checkfirst)
4334
4335 def drop(
4336 self,
4337 bind: _CreateDropBind,
4338 checkfirst: Union[bool, CheckFirst] = CheckFirst.SEQUENCES,
4339 ) -> None:
4340 """Drops this sequence from the database."""
4341
4342 bind._run_ddl_visitor(ddl.SchemaDropper, self, checkfirst=checkfirst)
4343
4344 def _not_a_column_expr(self) -> NoReturn:
4345 raise exc.InvalidRequestError(

Calls 1

_run_ddl_visitorMethod · 0.45