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

Method reset_isolation_level

lib/sqlalchemy/engine/interfaces.py:2403–2428  ·  view source on GitHub ↗

Given a DBAPI connection, revert its isolation to the default. Note that this is a dialect-level method which is used as part of the implementation of the :class:`_engine.Connection` and :class:`_engine.Engine` isolation level facilities; these APIs should be preferr

(self, dbapi_connection: DBAPIConnection)

Source from the content-addressed store, hash-verified

2401 return None
2402
2403 def reset_isolation_level(self, dbapi_connection: DBAPIConnection) -> None:
2404 """Given a DBAPI connection, revert its isolation to the default.
2405
2406 Note that this is a dialect-level method which is used as part
2407 of the implementation of the :class:`_engine.Connection` and
2408 :class:`_engine.Engine`
2409 isolation level facilities; these APIs should be preferred for
2410 most typical use cases.
2411
2412 .. seealso::
2413
2414 :meth:`_engine.Connection.get_isolation_level`
2415 - view current level
2416
2417 :attr:`_engine.Connection.default_isolation_level`
2418 - view default level
2419
2420 :paramref:`.Connection.execution_options.isolation_level` -
2421 set per :class:`_engine.Connection` isolation level
2422
2423 :paramref:`_sa.create_engine.isolation_level` -
2424 set per :class:`_engine.Engine` isolation level
2425
2426 """
2427
2428 raise NotImplementedError()
2429
2430 def set_isolation_level(
2431 self, dbapi_connection: DBAPIConnection, level: IsolationLevel

Callers 5

reset_characteristicMethod · 0.45
test_autocommit_onMethod · 0.45
test_reset_levelMethod · 0.45

Calls

no outgoing calls

Tested by 4

test_autocommit_onMethod · 0.36
test_reset_levelMethod · 0.36