MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / decorated

Function decorated

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

Source from the content-addressed store, hash-verified

31
32 @util.decorator
33 def decorated(fn, self, connection): # type: ignore
34 connection = connection.connect()
35 try:
36 return connection.info[key]
37 except KeyError:
38 connection.info[key] = val = fn(self, connection)
39 return val
40
41 return decorated
42

Callers

nothing calls this directly

Calls 1

connectMethod · 0.45

Tested by

no test coverage detected