MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / reset_isolation_level

Method reset_isolation_level

lib/sqlalchemy/engine/interfaces.py:2434–2459  ·  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

2432 return None
2433
2434 def reset_isolation_level(self, dbapi_connection: DBAPIConnection) -> None:
2435 """Given a DBAPI connection, revert its isolation to the default.
2436
2437 Note that this is a dialect-level method which is used as part
2438 of the implementation of the :class:`_engine.Connection` and
2439 :class:`_engine.Engine`
2440 isolation level facilities; these APIs should be preferred for
2441 most typical use cases.
2442
2443 .. seealso::
2444
2445 :meth:`_engine.Connection.get_isolation_level`
2446 - view current level
2447
2448 :attr:`_engine.Connection.default_isolation_level`
2449 - view default level
2450
2451 :paramref:`.Connection.execution_options.isolation_level` -
2452 set per :class:`_engine.Connection` isolation level
2453
2454 :paramref:`_sa.create_engine.isolation_level` -
2455 set per :class:`_engine.Engine` isolation level
2456
2457 """
2458
2459 raise NotImplementedError()
2460
2461 def set_isolation_level(
2462 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