1
0
mirror of https://github.com/DATA-DOG/go-sqlmock.git synced 2024-11-24 08:32:36 +02:00

compose Rows interface with sql driver.Rows

This commit is contained in:
gedi 2014-02-14 17:12:48 +02:00
parent bdba0bb0c6
commit efe94c317b

View File

@ -10,11 +10,9 @@ import (
// Rows interface allows to construct rows
// which also satisfies database/sql/driver.Rows interface
type Rows interface {
driver.Rows // composed interface, supports sql driver.Rows
AddRow(...driver.Value) Rows
FromCSVString(s string) Rows
Next([]driver.Value) error
Columns() []string
Close() error
}
// a struct which implements database/sql/driver.Rows