1
0
mirror of https://github.com/golang/go synced 2024-11-24 21:00:09 -07:00

sql: document that for drivers, io.EOF means no more rows

This was used in the sql package + tests, but never
documented.

R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5372107
This commit is contained in:
Brad Fitzpatrick 2011-11-15 14:29:45 -08:00
parent 471e43cf00
commit 5b7827ec07

View File

@ -138,6 +138,8 @@ type Rows interface {
// The dest slice may be populated with only with values
// of subset types defined above, but excluding string.
// All string values must be converted to []byte.
//
// Next should return io.EOF when there are no more rows.
Next(dest []interface{}) error
}