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

Method fatal

rows.go:211–218  ·  view source on GitHub ↗

fatal signals an error occurred after the query was sent to the server. It closes the rows automatically.

(err error)

Source from the content-addressed store, hash-verified

209// fatal signals an error occurred after the query was sent to the server. It
210// closes the rows automatically.
211func (rows *baseRows) fatal(err error) {
212 if rows.err != nil {
213 return
214 }
215
216 rows.err = err
217 rows.Close()
218}
219
220func (rows *baseRows) Next() bool {
221 if rows.closed {

Callers 3

ScanMethod · 0.95
ValuesMethod · 0.95
QueryMethod · 0.80

Calls 1

CloseMethod · 0.95

Tested by

no test coverage detected