MCPcopy
hub / github.com/django/django / constraint_sql

Method constraint_sql

django/db/models/constraints.py:201–203  ·  view source on GitHub ↗
(self, model, schema_editor)

Source from the content-addressed store, hash-verified

199 return sql % tuple(schema_editor.quote_value(p) for p in params)
200
201 def constraint_sql(self, model, schema_editor):
202 check = self._get_check_sql(model, schema_editor)
203 return schema_editor._check_sql(self.name, check)
204
205 def create_sql(self, model, schema_editor):
206 check = self._get_check_sql(model, schema_editor)

Callers

nothing calls this directly

Calls 2

_get_check_sqlMethod · 0.95
_check_sqlMethod · 0.80

Tested by

no test coverage detected