MCPcopy
hub / github.com/django/django / _check_sql

Method _check_sql

django/db/backends/base/schema.py:1973–1977  ·  view source on GitHub ↗
(self, name, check)

Source from the content-addressed store, hash-verified

1971 return self._delete_constraint_sql(sql, model, name)
1972
1973 def _check_sql(self, name, check):
1974 return self.sql_constraint % {
1975 "name": self.quote_name(name),
1976 "constraint": self.sql_check_constraint % {"check": check},
1977 }
1978
1979 def _create_check_sql(self, model, name, check):
1980 if not self.connection.features.supports_table_check_constraints:

Callers 1

constraint_sqlMethod · 0.80

Calls 1

quote_nameMethod · 0.95

Tested by

no test coverage detected