2
0

Add docs regarding closing BatchResults

This commit is contained in:
Jack Christensen
2019-09-19 22:46:43 -05:00
parent 9d3a4b5736
commit e16bfa9af5
2 changed files with 5 additions and 3 deletions
+3 -2
View File
@@ -36,8 +36,9 @@ type BatchResults interface {
// QueryRow reads the results from the next query in the batch as if the query has been sent with Conn.QueryRow.
QueryRow() Row
// Close closes the batch operation. Any error that occurred during a batch operation may have made it impossible to
// resyncronize the connection with the server. In this case the underlying connection will have been closed.
// Close closes the batch operation. This must be called before the underlying connection can be used again. Any error
// that occurred during a batch operation may have made it impossible to resyncronize the connection with the server.
// In this case the underlying connection will have been closed.
Close() error
}