MCPcopy Create free account
hub / github.com/DATA-DOG/go-sqlmock / RowError

Method RowError

rows.go:158–161  ·  view source on GitHub ↗

RowError allows to set an error which will be returned when a given row number is read

(row int, err error)

Source from the content-addressed store, hash-verified

156// which will be returned when a given
157// row number is read
158func (r *Rows) RowError(row int, err error) *Rows {
159 r.nextErr[row] = err
160 return r
161}
162
163// AddRow composed from database driver.Value slice
164// return the same instance to perform subsequent actions.

Callers 3

ExampleRows_rowErrorFunction · 0.80
TestQueryMultiRowsFunction · 0.80

Calls

no outgoing calls

Tested by 3

ExampleRows_rowErrorFunction · 0.64
TestQueryMultiRowsFunction · 0.64