MCPcopy Create free account
hub / github.com/PyMySQL/PyMySQL / read

Method read

pymysql/connections.py:1286–1297  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1284 self._finish_unbuffered_query()
1285
1286 def read(self):
1287 try:
1288 first_packet = self.connection._read_packet()
1289
1290 if first_packet.is_ok_packet():
1291 self._read_ok_packet(first_packet)
1292 elif first_packet.is_load_local_packet():
1293 self._read_load_local_packet(first_packet)
1294 else:
1295 self._read_result_packet(first_packet)
1296 finally:
1297 self.connection = None
1298
1299 def init_unbuffered_query(self):
1300 """

Callers 5

show_warningsMethod · 0.95
_read_query_resultMethod · 0.95
__init__Method · 0.45
_read_bytesMethod · 0.45
_send_local_fileFunction · 0.45

Calls 6

_read_ok_packetMethod · 0.95
_read_result_packetMethod · 0.95
_read_packetMethod · 0.80
is_ok_packetMethod · 0.80
is_load_local_packetMethod · 0.80

Tested by

no test coverage detected