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

Method MustExecContext

named_context.go:69–75  ·  named_context.go::NamedStmt.MustExecContext

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

(ctx context.Context, arg interface{})

Source from the content-addressed store, hash-verified

67// MustExecContext execs a NamedStmt, panicing on error
68// Any named placeholder parameters are replaced with fields from arg.
69func (n *NamedStmt) MustExecContext(ctx context.Context, arg interface{}) sql.Result {
70 res, err := n.ExecContext(ctx, arg)
71 if err != nil {
72 panic(err)
73 }
74 return res
75}
76
77// QueryxContext using this NamedStmt
78// Any named placeholder parameters are replaced with fields from arg.

Callers

nothing calls this directly

Calls 1

ExecContextMethod · 0.95

Tested by

no test coverage detected