MCPcopy
hub / github.com/django/django / get_columns

Method get_columns

django/db/models/sql/query.py:176–180  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

174 return RawQuery(self.sql, using, params=self.params)
175
176 def get_columns(self):
177 if self.cursor is None:
178 self._execute_query()
179 converter = connections[self.using].introspection.identifier_converter
180 return [converter(column_meta[0]) for column_meta in self.cursor.description]
181
182 def __iter__(self):
183 # Always execute a new query for a new iterator.

Callers 1

columnsMethod · 0.80

Calls 1

_execute_queryMethod · 0.95

Tested by

no test coverage detected