MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / set_as_current

Method set_as_current

lib/sqlalchemy/testing/config.py:384–391  ·  view source on GitHub ↗
(cls, config, namespace)

Source from the content-addressed store, hash-verified

382
383 @classmethod
384 def set_as_current(cls, config, namespace):
385 global db, _current, db_url, test_schema, test_schema_2, db_opts
386 _current = config
387 db_url = config.db.url
388 db_opts = config.db_opts
389 test_schema = config.test_schema
390 test_schema_2 = config.test_schema_2
391 namespace.db = db = config.db
392
393 @classmethod
394 def push_engine(cls, db, namespace):

Callers 4

pushMethod · 0.80
popMethod · 0.80
resetMethod · 0.80
_engine_uriFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected