MCPcopy
hub / github.com/django/django / get_with_params

Method get_with_params

django/contrib/postgres/indexes.py:76–84  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

74 return path, args, kwargs
75
76 def get_with_params(self):
77 with_params = []
78 if self.length is not None:
79 with_params.append("length = %d" % self.length)
80 if self.columns:
81 with_params.extend(
82 "col%d = %d" % (i, v) for i, v in enumerate(self.columns, start=1)
83 )
84 return with_params
85
86
87class BrinIndex(PostgresIndex):

Callers

nothing calls this directly

Calls 2

extendMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected