MustExec execs a NamedStmt, panicing on error Any named placeholder parameters are replaced with fields from arg.
(arg interface{})
| 72 | // MustExec execs a NamedStmt, panicing on error |
| 73 | // Any named placeholder parameters are replaced with fields from arg. |
| 74 | func (n *NamedStmt) MustExec(arg interface{}) sql.Result { |
| 75 | res, err := n.Exec(arg) |
| 76 | if err != nil { |
| 77 | panic(err) |
| 78 | } |
| 79 | return res |
| 80 | } |
| 81 | |
| 82 | // Queryx using this NamedStmt |
| 83 | // Any named placeholder parameters are replaced with fields from arg. |