MCPcopy Create free account
hub / github.com/graphql-python/graphene-django / ThreadLocalState

Class ThreadLocalState

graphene_django/debug/sql/tracking.py:16–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14
15
16class ThreadLocalState(local):
17 def __init__(self):
18 self.enabled = True
19
20 @property
21 def Wrapper(self):
22 if self.enabled:
23 return NormalCursorWrapper
24 return ExceptionCursorWrapper
25
26 def recording(self, v):
27 self.enabled = v
28
29
30state = ThreadLocalState()

Callers 1

tracking.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…