MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / visit_drop_schema

Method visit_drop_schema

lib/sqlalchemy/sql/compiler.py:7052–7059  ·  view source on GitHub ↗
(self, drop, **kw)

Source from the content-addressed store, hash-verified

7050 return text + self.preparer.format_schema(create.element)
7051
7052 def visit_drop_schema(self, drop, **kw):
7053 text = "DROP SCHEMA "
7054 if drop.if_exists:
7055 text += "IF EXISTS "
7056 text += self.preparer.format_schema(drop.element)
7057 if drop.cascade:
7058 text += " CASCADE"
7059 return text
7060
7061 def visit_create_table(self, create, **kw):
7062 table = create.element

Callers

nothing calls this directly

Calls 1

format_schemaMethod · 0.80

Tested by

no test coverage detected