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()
| 20 | // res, err := rawConn.Exec(...) |
| 21 | // res.(mysql.Result).AllRowsAffected() |
| 22 | type 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 | |
| 32 | type mysqlResult struct { |
| 33 | // One entry in both slices is created for every executed statement result. |