MCPcopy
hub / github.com/jmoiron/sqlx / MustExec

Method MustExec

named.go:74–80  ·  view source on GitHub ↗

MustExec execs a NamedStmt, panicing on error Any named placeholder parameters are replaced with fields from arg.

(arg interface{})

Source from the content-addressed store, hash-verified

72// MustExec execs a NamedStmt, panicing on error
73// Any named placeholder parameters are replaced with fields from arg.
74func (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.

Callers

nothing calls this directly

Calls 1

ExecMethod · 0.95

Tested by

no test coverage detected