| 30 | } |
| 31 | |
| 32 | type mysqlResult struct { |
| 33 | // One entry in both slices is created for every executed statement result. |
| 34 | affectedRows []int64 |
| 35 | insertIds []int64 |
| 36 | } |
| 37 | |
| 38 | func (res *mysqlResult) LastInsertId() (int64, error) { |
| 39 | return res.insertIds[len(res.insertIds)-1], nil |
nothing calls this directly
no outgoing calls
no test coverage detected