MCPcopy Create free account
hub / github.com/dolthub/doltgresql / makeCommandComplete

Function makeCommandComplete

server/connection_handler.go:694–706  ·  view source on GitHub ↗
(tag string, rows int32)

Source from the content-addressed store, hash-verified

692}
693
694func makeCommandComplete(tag string, rows int32) *pgproto3.CommandComplete {
695 switch tag {
696 case "INSERT", "DELETE", "UPDATE", "MERGE", "SELECT", "CREATE TABLE AS", "MOVE", "FETCH", "COPY":
697 if tag == "INSERT" {
698 tag = "INSERT 0"
699 }
700 tag = fmt.Sprintf("%s %d", tag, rows)
701 }
702
703 return &pgproto3.CommandComplete{
704 CommandTag: []byte(tag),
705 }
706}
707
708// handleCopyData handles the COPY DATA message, by loading the data sent from the client. The |stop| response parameter
709// is true if the connection handler should shut down the connection, |endOfMessages| is true if no more COPY DATA

Callers 2

handleExecuteMethod · 0.85
queryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected