MCPcopy
hub / github.com/jackc/pgx / makeCommandTag

Method makeCommandTag

pgconn/pgconn.go:2101–2103  ·  view source on GitHub ↗

makeCommandTag makes a CommandTag. It does not retain a reference to buf or buf's underlying memory.

(buf []byte)

Source from the content-addressed store, hash-verified

2099
2100// makeCommandTag makes a CommandTag. It does not retain a reference to buf or buf's underlying memory.
2101func (pgConn *PgConn) makeCommandTag(buf []byte) CommandTag {
2102 return CommandTag{s: string(buf)}
2103}
2104
2105// enterPotentialWriteReadDeadlock must be called before a write that could deadlock if the server is simultaneously
2106// blocked writing to us.

Callers 6

CopyToMethod · 0.95
CopyFromMethod · 0.95
NextResultMethod · 0.80
receiveMessageMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected