Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
27
def
get_constraints(table):
28
with
connection.cursor()
as
cursor:
29
return
connection.introspection.get_constraints(cursor, table)
30
31
32
class
BaseConstraintTests(SimpleTestCase):
Callers
3
test_name
Method · 0.85
test_abstract_name
Method · 0.85
test_name
Method · 0.85
Calls
2
cursor
Method · 0.80
get_constraints
Method · 0.45
Tested by
no test coverage detected