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)
| 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 |
no outgoing calls
no test coverage detected