MCPcopy Create free account
hub / github.com/Gelembjuk/oursql / decodeQueryRequest

Function decodeQueryRequest

lib/dbproxy/decoder.go:268–281  ·  view source on GitHub ↗

DecodeQueryRequest decodes COM_QUERY and COM_STMT_PREPARE requests from client. Basic packet structure shown below. See https://mariadb.com/kb/en/mariadb/com_query/ and https://mariadb.com/kb/en/mariadb/com_stmt_prepare/ int<3> PacketLength int<1> PacketNumber int<1> Command COM_QUERY (0x03) or COM

(packet []byte)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

WriteMethod · 0.85

Calls 1

readEOFLengthStringFunction · 0.85

Tested by

no test coverage detected