add NewRow from rows
This commit is contained in:
parent
6902127083
commit
71c1070a86
5
rows.go
5
rows.go
|
@ -254,6 +254,11 @@ func ErrorRow(err error) *Row {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// NewRow from rows
|
||||||
|
func NewRow(rows *Rows, err error) *Row {
|
||||||
|
return &Row{rows, err}
|
||||||
|
}
|
||||||
|
|
||||||
func (row *Row) Columns() ([]string, error) {
|
func (row *Row) Columns() ([]string, error) {
|
||||||
if row.err != nil {
|
if row.err != nil {
|
||||||
return nil, row.err
|
return nil, row.err
|
||||||
|
|
Loading…
Reference in New Issue