MCPcopy
hub / github.com/django/django / get_constraints

Function get_constraints

tests/constraints/tests.py:27–29  ·  view source on GitHub ↗
(table)

Source from the content-addressed store, hash-verified

25
26
27def get_constraints(table):
28 with connection.cursor() as cursor:
29 return connection.introspection.get_constraints(cursor, table)
30
31
32class BaseConstraintTests(SimpleTestCase):

Callers 3

test_nameMethod · 0.85
test_abstract_nameMethod · 0.85
test_nameMethod · 0.85

Calls 2

cursorMethod · 0.80
get_constraintsMethod · 0.45

Tested by

no test coverage detected