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

Method drop

lib/sqlalchemy/dialects/postgresql/named_types.py:59–72  ·  view source on GitHub ↗

Emit ``DROP`` DDL for this type. :param bind: a connectable :class:`_engine.Engine`, :class:`_engine.Connection`, or similar object to emit SQL. :param checkfirst: if ``True``, a query against the PG catalog will be first performed to see if the t

(
        self, bind: _CreateDropBind, checkfirst: bool = True, **kw: Any
    )

Source from the content-addressed store, hash-verified

57 bind._run_ddl_visitor(self.DDLGenerator, self, checkfirst=checkfirst)
58
59 def drop(
60 self, bind: _CreateDropBind, checkfirst: bool = True, **kw: Any
61 ) -> None:
62 """Emit ``DROP`` DDL for this type.
63
64 :param bind: a connectable :class:`_engine.Engine`,
65 :class:`_engine.Connection`, or similar object to emit
66 SQL.
67 :param checkfirst: if ``True``, a query against
68 the PG catalog will be first performed to see
69 if the type actually exists before dropping.
70
71 """
72 bind._run_ddl_visitor(self.DDLDropper, self, checkfirst=checkfirst)
73
74 def _check_for_name_in_memos(
75 self, checkfirst: CheckFirst, kw: Dict[str, Any]

Callers 1

_on_metadata_dropMethod · 0.95

Calls 1

_run_ddl_visitorMethod · 0.45

Tested by

no test coverage detected