MCPcopy
hub / github.com/django/django / as_sql

Method as_sql

django/contrib/postgres/search.py:260–264  ·  view source on GitHub ↗
(self, compiler, connection, function=None, template=None)

Source from the content-addressed store, hash-verified

258 super().__init__(*expressions, output_field=output_field)
259
260 def as_sql(self, compiler, connection, function=None, template=None):
261 sql, params = super().as_sql(compiler, connection, function, template)
262 if self.invert:
263 sql = "!!(%s)" % sql
264 return sql, params
265
266 def __invert__(self):
267 clone = self.copy()

Callers

nothing calls this directly

Calls 1

as_sqlMethod · 0.45

Tested by

no test coverage detected