MCPcopy
hub / github.com/django/django / new_format_sql

Method new_format_sql

tests/test_runner/test_debug_sql.py:23–27  ·  view source on GitHub ↗
(self, sql)

Source from the content-addressed store, hash-verified

21 self.format_sql_calls = []
22
23 def new_format_sql(self, sql):
24 # Use time() to introduce some uniqueness.
25 formatted = "Formatted! %s at %s" % (sql.upper(), time())
26 self.format_sql_calls.append({sql: formatted})
27 return formatted
28
29 def make_handler(self, **formatter_kwargs):
30 formatter = QueryFormatter(**formatter_kwargs)

Callers

nothing calls this directly

Calls 2

timeFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected