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

Interface Result

result.go:22–30  ·  result.go::Result

Result exposes data not available through *connection.Result. This is accessible by executing statements using sql.Conn.Raw() and downcasting the returned result: res, err := rawConn.Exec(...) res.(mysql.Result).AllRowsAffected()

Source from the content-addressed store, hash-verified

20// res, err := rawConn.Exec(...)
21// res.(mysql.Result).AllRowsAffected()
22type Result interface {
23 driver.Result
24 // AllRowsAffected returns a slice containing the affected rows for each
25 // executed statement.
26 AllRowsAffected() []int64
27 // AllLastInsertIds returns a slice containing the last inserted ID for each
28 // executed statement.
29 AllLastInsertIds() []int64
30}
31
32type mysqlResult struct {
33 // One entry in both slices is created for every executed statement result.

Callers 2

TestExecMultipleResultsFunction · 0.65
TestExecMultipleResultsFunction · 0.65

Implementers 1

mysqlResultresult.go

Calls

no outgoing calls

Tested by

no test coverage detected