2
0

Added more docs

This commit is contained in:
Jack Christensen
2013-07-15 08:14:32 -05:00
parent 0de2a7897a
commit 1d1d836207
4 changed files with 68 additions and 7 deletions
+2
View File
@@ -1,5 +1,6 @@
package pgx
// DataRowReader is used by SelectFunc to process incoming rows.
type DataRowReader struct {
mr *MessageReader
fields []FieldDescription
@@ -19,6 +20,7 @@ func newDataRowReader(mr *MessageReader, fields []FieldDescription) (r *DataRowR
return
}
// ReadValue returns the next value from the current row.
func (r *DataRowReader) ReadValue() interface{} {
fieldDescription := r.fields[r.currentFieldIdx]
r.currentFieldIdx++