]> Cypherpunks repositories - gostls13.git/commitdiff
sql: document that for drivers, io.EOF means no more rows
authorBrad Fitzpatrick <bradfitz@golang.org>
Tue, 15 Nov 2011 22:29:45 +0000 (14:29 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 15 Nov 2011 22:29:45 +0000 (14:29 -0800)
This was used in the sql package + tests, but never
documented.

R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5372107

src/pkg/exp/sql/driver/driver.go

index 35fc6ae43c1dd0cef837a40323ae757936efc698..9fc47905ce7aae79d8ca83047989e5b9593508c5 100644 (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
 }