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

Method is_disconnect

lib/sqlalchemy/engine/default.py:1087–1095  ·  view source on GitHub ↗
(
        self,
        e: DBAPIModule.Error,
        connection: Union[
            pool.PoolProxiedConnection, interfaces.DBAPIConnection, None
        ],
        cursor: Optional[interfaces.DBAPICursor],
    )

Source from the content-addressed store, hash-verified

1085 cursor.execute(statement)
1086
1087 def is_disconnect(
1088 self,
1089 e: DBAPIModule.Error,
1090 connection: Union[
1091 pool.PoolProxiedConnection, interfaces.DBAPIConnection, None
1092 ],
1093 cursor: Optional[interfaces.DBAPICursor],
1094 ) -> bool:
1095 return False
1096
1097 @util.memoized_instancemethod
1098 def _gen_allowed_isolation_levels(self, dbapi_conn):

Callers 1

_do_ping_w_eventMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected