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

Method is_eof_packet

pymysql/protocol.py:185–189  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

183 return self._data[0] == 0 and len(self._data) >= 7
184
185 def is_eof_packet(self):
186 # http://dev.mysql.com/doc/internals/en/generic-response-packets.html#packet-EOF_Packet
187 # Caution: \xFE may be LengthEncodedInteger.
188 # If \xFE is LengthEncodedInteger header, 8bytes followed.
189 return self._data[0] == 0xFE and len(self._data) < 9
190
191 def is_auth_switch_request(self):
192 # http://dev.mysql.com/doc/internals/en/connection-phase-packets.html#packet-Protocol::AuthSwitchRequest

Callers 3

_check_packet_is_eofMethod · 0.80
_get_descriptionsMethod · 0.80
__init__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected