MCPcopy
hub / github.com/django/django / sql_with_params

Method sql_with_params

django/db/models/sql/query.py:356–361  ·  view source on GitHub ↗

Return the query as an SQL string and the parameters that will be substituted into the query.

(self)

Source from the content-addressed store, hash-verified

354 return sql % params
355
356 def sql_with_params(self):
357 """
358 Return the query as an SQL string and the parameters that will be
359 substituted into the query.
360 """
361 return self.get_compiler(DEFAULT_DB_ALIAS).as_sql()
362
363 def __deepcopy__(self, memo):
364 """Limit the amount of work when a Query is deepcopied."""

Callers 4

__str__Method · 0.95
test_query_encodingMethod · 0.80

Calls 2

get_compilerMethod · 0.95
as_sqlMethod · 0.45

Tested by 3

test_query_encodingMethod · 0.64