MCPcopy
hub / github.com/django/django / __init__

Method __init__

django/db/backends/ddl_references.py:240–248  ·  view source on GitHub ↗
(self, table, expressions, compiler, quote_value)

Source from the content-addressed store, hash-verified

238
239class Expressions(TableColumns):
240 def __init__(self, table, expressions, compiler, quote_value):
241 self.compiler = compiler
242 self.expressions = expressions
243 self.quote_value = quote_value
244 columns = [
245 col.target.column
246 for col in self.compiler.query._gen_cols([self.expressions])
247 ]
248 super().__init__(table, columns)
249
250 def rename_table_references(self, old_table, new_table):
251 if self.table != old_table:

Callers

nothing calls this directly

Calls 2

_gen_colsMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected