MCPcopy Index your code
hub / github.com/PyMySQL/PyMySQL / _write_bytes

Method _write_bytes

pymysql/connections.py:831–839  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

829 return data
830
831 def _write_bytes(self, data):
832 self._sock.settimeout(self._write_timeout)
833 try:
834 self._sock.sendall(data)
835 except OSError as e:
836 self._force_close()
837 raise err.OperationalError(
838 CR.CR_SERVER_GONE_ERROR, f"MySQL server has gone away ({e!r})"
839 )
840
841 def _read_query_result(self, unbuffered=False):
842 self._result = None

Callers 3

closeMethod · 0.95
write_packetMethod · 0.95
_execute_commandMethod · 0.95

Calls 1

_force_closeMethod · 0.95

Tested by

no test coverage detected