MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / wrap

Function wrap

lib/sqlalchemy/dialects/mssql/base.py:2936–2948  ·  view source on GitHub ↗
(dialect, connection, schema=None, **kw)

Source from the content-addressed store, hash-verified

2934
2935def _db_plus_owner_listing(fn):
2936 def wrap(dialect, connection, schema=None, **kw):
2937 dbname, owner = _owner_plus_db(dialect, schema)
2938 return _switch_db(
2939 dbname,
2940 connection,
2941 fn,
2942 dialect,
2943 connection,
2944 dbname,
2945 owner,
2946 schema,
2947 **kw,
2948 )
2949
2950 return update_wrapper(wrap, fn)
2951

Callers

nothing calls this directly

Calls 2

_owner_plus_dbFunction · 0.85
_switch_dbFunction · 0.85

Tested by

no test coverage detected