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

Function wrap_cursor

graphene_django/debug/sql/tracking.py:34–42  ·  view source on GitHub ↗
(connection, panel)

Source from the content-addressed store, hash-verified

32
33
34def wrap_cursor(connection, panel):
35 if not hasattr(connection, "_graphene_cursor"):
36 connection._graphene_cursor = connection.cursor
37
38 def cursor():
39 return state.Wrapper(connection._graphene_cursor(), connection, panel)
40
41 connection.cursor = cursor
42 return cursor
43
44
45def unwrap_cursor(connection):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…