MCPcopy Create free account
hub / github.com/apecloud/myduckserver / handleCopyData

Method handleCopyData

pgserver/connection_handler.go:795–801  ·  view source on GitHub ↗

handleCopyData handles the COPY DATA message, by loading the data sent from the client. The |stop| response parameter is true if the connection handler should shut down the connection, |endOfMessages| is true if no more COPY DATA messages are expected, and the server should tell the client that it i

(message *pgproto3.CopyData)

Source from the content-addressed store, hash-verified

793 }
794
795 return &pgproto3.CommandComplete{
796 CommandTag: []byte(tag),
797 }
798}
799
800// handleCopyData handles the COPY DATA message, by loading the data sent from the client. The |stop| response parameter
801// is true if the connection handler should shut down the connection, |endOfMessages| is true if no more COPY DATA
802// messages are expected, and the server should tell the client that it is ready for the next query, and |err| contains
803// any error that occurred while processing the COPY DATA message.
804func (h *ConnectionHandler) handleCopyData(message *pgproto3.CopyData) (stop bool, endOfMessages bool, err error) {

Callers 1

handleMessageMethod · 0.95

Calls 1

handleCopyDataHelperMethod · 0.95

Tested by

no test coverage detected