MCPcopy
hub / github.com/django/django / quote_name

Method quote_name

django/db/models/sql/compiler.py:550–559  ·  view source on GitHub ↗

A wrapper around connection.ops.quote_name that memoizes quoted name values.

(self, name)

Source from the content-addressed store, hash-verified

548 return extra_select
549
550 def quote_name(self, name):
551 """
552 A wrapper around connection.ops.quote_name that memoizes quoted
553 name values.
554 """
555 if (quoted := self.quote_cache.get(name)) is not None:
556 return quoted
557 quoted = self.connection.ops.quote_name(name)
558 self.quote_cache[name] = quoted
559 return quoted
560
561 # RemovedInDjango70Warning: When the deprecation ends, remove.
562 def quote_name_unless_alias(self, name):

Callers 15

_order_by_pairsMethod · 0.95
get_from_clauseMethod · 0.95
database_forwardsMethod · 0.45
database_backwardsMethod · 0.45
create_collationMethod · 0.45
remove_collationMethod · 0.45
database_forwardsMethod · 0.45
constraint_sqlMethod · 0.45
remove_sqlMethod · 0.45

Calls 1

getMethod · 0.45