mirror of
https://github.com/zhashkevych/go-sqlxmock.git
synced 2026-06-15 16:57:21 +02:00
compose Rows interface with sql driver.Rows
This commit is contained in:
@@ -10,11 +10,9 @@ import (
|
|||||||
// Rows interface allows to construct rows
|
// Rows interface allows to construct rows
|
||||||
// which also satisfies database/sql/driver.Rows interface
|
// which also satisfies database/sql/driver.Rows interface
|
||||||
type Rows interface {
|
type Rows interface {
|
||||||
|
driver.Rows // composed interface, supports sql driver.Rows
|
||||||
AddRow(...driver.Value) Rows
|
AddRow(...driver.Value) Rows
|
||||||
FromCSVString(s string) Rows
|
FromCSVString(s string) Rows
|
||||||
Next([]driver.Value) error
|
|
||||||
Columns() []string
|
|
||||||
Close() error
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// a struct which implements database/sql/driver.Rows
|
// a struct which implements database/sql/driver.Rows
|
||||||
|
|||||||
Reference in New Issue
Block a user