MCPcopy
hub / github.com/go-sql-driver/mysql / RowsAffected

Method RowsAffected

result.go:42–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40}
41
42func (res *mysqlResult) RowsAffected() (int64, error) {
43 return res.affectedRows[len(res.affectedRows)-1], nil
44}
45
46func (res *mysqlResult) AllLastInsertIds() []int64 {
47 return slices.Clone(res.insertIds) // defensive copy

Callers 4

TestCRUDFunction · 0.80
TestMultiQueryFunction · 0.80
TestFoundRows1Function · 0.80
TestFoundRows2Function · 0.80

Calls

no outgoing calls

Tested by 4

TestCRUDFunction · 0.64
TestMultiQueryFunction · 0.64
TestFoundRows1Function · 0.64
TestFoundRows2Function · 0.64