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:
parent
bdba0bb0c6
commit
efe94c317b
4
rows.go
4
rows.go
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user