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

Method Err

rows.go:35–35  ·  rows.go::Rows.Err

Err returns any error that occurred while executing a query or reading its results. Err must be called after the Rows is closed (either by calling Close or by Next returning false) to check if the query was successful. If it is called before the Rows is closed it may return nil even if the query fai

()

Source from the content-addressed store, hash-verified

33 // Rows is closed (either by calling Close or by Next returning false) to check if the query was successful. If it is
34 // called before the Rows is closed it may return nil even if the query failed on the server.
35 Err() error
36
37 // CommandTag returns the command tag from this query. It is only available after Rows is closed.
38 CommandTag() pgconn.CommandTag

Implementers 3

baseRowsrows.go
errRowspgxpool/rows.go
poolRowspgxpool/rows.go

Calls

no outgoing calls