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

Method Close

rows.go:30–30  ·  view source on GitHub ↗

Close closes the rows, making the connection ready for use again. It is safe to call Close after rows is already closed.

()

Source from the content-addressed store, hash-verified

28 // Close closes the rows, making the connection ready for use again. It is safe
29 // to call Close after rows is already closed.
30 Close()
31
32 // Err returns any error that occurred while executing a query or reading its results. Err must be called after the
33 // Rows is closed (either by calling Close or by Next returning false) to check if the query was successful. If it is

Callers 15

TestTraceBatchNormalFunction · 0.65
TestTraceBatchCloseFunction · 0.65
TestTraceConnectFunction · 0.65
TestConnectFunction · 0.65
TestExecFailureFunction · 0.65
TestListenNotifyFunction · 0.65
TestFatalRxErrorFunction · 0.65
TestFatalTxErrorFunction · 0.65

Implementers 3

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

Calls

no outgoing calls

Tested by 15

TestTraceBatchNormalFunction · 0.52
TestTraceBatchCloseFunction · 0.52
TestTraceConnectFunction · 0.52
TestConnectFunction · 0.52
TestExecFailureFunction · 0.52
TestListenNotifyFunction · 0.52
TestFatalRxErrorFunction · 0.52
TestFatalTxErrorFunction · 0.52