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

Method MustExecContext

sqlx_context.go:193–195  ·  view source on GitHub ↗

MustExecContext (panic) runs MustExec using this database. Any placeholder parameters are replaced with supplied args.

(ctx context.Context, query string, args ...interface{})

Source from the content-addressed store, hash-verified

191// MustExecContext (panic) runs MustExec using this database.
192// Any placeholder parameters are replaced with supplied args.
193func (db *DB) MustExecContext(ctx context.Context, query string, args ...interface{}) sql.Result {
194 return MustExecContext(ctx, db, query, args...)
195}
196
197// BeginTxx begins a transaction and returns an *sqlx.Tx instead of an
198// *sql.Tx.

Callers 3

TestNilInsertsContextFunction · 0.45

Calls 1

MustExecContextFunction · 0.85

Tested by 3

TestNilInsertsContextFunction · 0.36