MCPcopy Index your code
hub / github.com/sqlalchemy/sqlalchemy / visit_set_table_comment

Method visit_set_table_comment

lib/sqlalchemy/sql/compiler.py:7298–7304  ·  view source on GitHub ↗
(self, create, **kw)

Source from the content-addressed store, hash-verified

7296 )
7297
7298 def visit_set_table_comment(self, create, **kw):
7299 return "COMMENT ON TABLE %s IS %s" % (
7300 self.preparer.format_table(create.element),
7301 self.sql_compiler.render_literal_value(
7302 create.element.comment, sqltypes.String()
7303 ),
7304 )
7305
7306 def visit_drop_table_comment(self, drop, **kw):
7307 return "COMMENT ON TABLE %s IS NULL" % self.preparer.format_table(

Callers

nothing calls this directly

Calls 2

format_tableMethod · 0.80
render_literal_valueMethod · 0.45

Tested by

no test coverage detected