MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / do_begin

Method do_begin

lib/sqlalchemy/engine/interfaces.py:2008–2021  ·  view source on GitHub ↗

Provide an implementation of ``connection.begin()``, given a DB-API connection. The DBAPI has no dedicated "begin" method and it is expected that transactions are implicit. This hook is provided for those DBAPIs that might need additional help in this area.

(self, dbapi_connection: PoolProxiedConnection)

Source from the content-addressed store, hash-verified

2006 raise NotImplementedError()
2007
2008 def do_begin(self, dbapi_connection: PoolProxiedConnection) -> None:
2009 """Provide an implementation of ``connection.begin()``, given a
2010 DB-API connection.
2011
2012 The DBAPI has no dedicated "begin" method and it is expected
2013 that transactions are implicit. This hook is provided for those
2014 DBAPIs that might need additional help in this area.
2015
2016 :param dbapi_connection: a DBAPI connection, typically
2017 proxied within a :class:`.ConnectionFairy`.
2018
2019 """
2020
2021 raise NotImplementedError()
2022
2023 def do_rollback(self, dbapi_connection: PoolProxiedConnection) -> None:
2024 """Provide an implementation of ``connection.rollback()``, given

Callers 2

do_begin_twophaseMethod · 0.45
_begin_implMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected