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

Function MustExec

sqlx.go:722–728  ·  view source on GitHub ↗

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{})

Source from the content-addressed store, hash-verified

720// MustExec execs the query using e and panics if there was an error.
721// Any placeholder parameters are replaced with supplied args.
722func 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.
731func (r *Row) SliceScan() ([]interface{}, error) {

Callers 3

MustExecMethod · 0.85
MustExecMethod · 0.85
MustExecMethod · 0.85

Calls 1

ExecMethod · 0.65

Tested by

no test coverage detected