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

Method Close

pgconn/pgconn.go:1697–1706  ·  view source on GitHub ↗

Close closes the MultiResultReader and returns the first error that occurred during the MultiResultReader's use.

()

Source from the content-addressed store, hash-verified

1695
1696// Close closes the MultiResultReader and returns the first error that occurred during the MultiResultReader's use.
1697func (mrr *MultiResultReader) Close() error {
1698 for !mrr.closed {
1699 _, err := mrr.receiveMessage()
1700 if err != nil {
1701 return mrr.err
1702 }
1703 }
1704
1705 return mrr.err
1706}
1707
1708// ResultReader is a reader for the result of a single query.
1709type ResultReader struct {

Callers 1

ReadAllMethod · 0.95

Calls 1

receiveMessageMethod · 0.95

Tested by

no test coverage detected