MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / decorated

Function decorated

lib/sqlalchemy/engine/util.py:44–50  ·  view source on GitHub ↗
(fn, self, connection)

Source from the content-addressed store, hash-verified

42
43 @util.decorator
44 def decorated(fn, self, connection): # type: ignore
45 connection = connection.connect()
46 try:
47 return connection.info[key]
48 except KeyError:
49 connection.info[key] = val = fn(self, connection)
50 return val
51
52 return decorated
53

Callers

nothing calls this directly

Calls 1

connectMethod · 0.45

Tested by

no test coverage detected