MCPcopy
hub / github.com/django/django / create_sql

Method create_sql

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

Source from the content-addressed store, hash-verified

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)
207 return schema_editor._create_check_sql(model, self.name, check)
208
209 def remove_sql(self, model, schema_editor):
210 return schema_editor._delete_check_sql(model, self.name)

Callers

nothing calls this directly

Calls 2

_get_check_sqlMethod · 0.95
_create_check_sqlMethod · 0.80

Tested by

no test coverage detected