MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / is_disconnect

Method is_disconnect

lib/sqlalchemy/engine/interfaces.py:2275–2284  ·  view source on GitHub ↗

Return True if the given DB-API error indicates an invalid connection

(
        self,
        e: DBAPIModule.Error,
        connection: Optional[Union[PoolProxiedConnection, DBAPIConnection]],
        cursor: Optional[DBAPICursor],
    )

Source from the content-addressed store, hash-verified

2273 raise NotImplementedError()
2274
2275 def is_disconnect(
2276 self,
2277 e: DBAPIModule.Error,
2278 connection: Optional[Union[PoolProxiedConnection, DBAPIConnection]],
2279 cursor: Optional[DBAPICursor],
2280 ) -> bool:
2281 """Return True if the given DB-API error indicates an invalid
2282 connection"""
2283
2284 raise NotImplementedError()
2285
2286 def connect(self, *cargs: Any, **cparams: Any) -> DBAPIConnection:
2287 r"""Establish a connection using this dialect's DBAPI.

Calls

no outgoing calls

Tested by

no test coverage detected