module documentation

Undocumented

Class ConnectionKiller Undocumented
Class DBAPIProxyConnection Proxy a DBAPI connection.
Class DBAPIProxyCursor Proxy a DBAPI cursor.
Class ReconnectFixture Undocumented
Function all_dialects Undocumented
Function assert_conns_closed Undocumented
Function close_first Decorator that closes all connections before fn execution.
Function close_open_connections Decorator that closes all connections after fn execution.
Function mock_engine Provides a mocking engine based on the current testing.db.
Function reconnecting_engine Undocumented
Function rollback_open_connections Decorator that rolls back all open connections after fn execution.
Function testing_engine Undocumented
Variable testing_reaper Undocumented
def all_dialects(exclude=None): (source)

Undocumented

@decorator
def assert_conns_closed(fn, *args, **kw): (source)

Undocumented

@decorator
def close_first(fn, *args, **kw): (source)

Decorator that closes all connections before fn execution.

@decorator
def close_open_connections(fn, *args, **kw): (source)

Decorator that closes all connections after fn execution.

def mock_engine(dialect_name=None): (source)

Provides a mocking engine based on the current testing.db. This is normally used to test DDL generation flow as emitted by an Engine. It should not be used in other cases, as assert_compile() and assert_sql_execution() are much better choices with fewer moving parts.

def reconnecting_engine(url=None, options=None): (source)

Undocumented

@decorator
def rollback_open_connections(fn, *args, **kw): (source)

Decorator that rolls back all open connections after fn execution.

@typing.overload
def testing_engine(url: Optional[URL] = None, options: Optional[Dict[str, Any]] = None, asyncio: Literal[False] = False, transfer_staticpool: bool = False) -> Engine:
@typing.overload
def testing_engine(url: Optional[URL] = None, options: Optional[Dict[str, Any]] = None, asyncio: Literal[True] = True, transfer_staticpool: bool = False) -> AsyncEngine:
(source)

Undocumented

testing_reaper = (source)

Undocumented