MustExec execs the query using e and panics if there was an error. Any placeholder parameters are replaced with supplied args.
(e Execer, query string, args ...interface{})
| 720 | // MustExec execs the query using e and panics if there was an error. |
| 721 | // Any placeholder parameters are replaced with supplied args. |
| 722 | func MustExec(e Execer, query string, args ...interface{}) sql.Result { |
| 723 | res, err := e.Exec(query, args...) |
| 724 | if err != nil { |
| 725 | panic(err) |
| 726 | } |
| 727 | return res |
| 728 | } |
| 729 | |
| 730 | // SliceScan using this Rows. |
| 731 | func (r *Row) SliceScan() ([]interface{}, error) { |