MCPcopy
hub / github.com/django/django / get_column_comment

Method get_column_comment

tests/schema/tests.py:297–303  ·  view source on GitHub ↗
(self, table, column)

Source from the content-addressed store, hash-verified

295 )
296
297 def get_column_comment(self, table, column):
298 with connection.cursor() as cursor:
299 return next(
300 f.comment
301 for f in connection.introspection.get_table_description(cursor, table)
302 if f.name == column
303 )
304
305 def get_table_comment(self, table):
306 with connection.cursor() as cursor:

Calls 2

cursorMethod · 0.80
get_table_descriptionMethod · 0.45

Tested by

no test coverage detected