MCPcopy
hub / github.com/go-sql-driver/mysql / ExecContext

Method ExecContext

connection.go:706–718  ·  view source on GitHub ↗
(ctx context.Context, args []driver.NamedValue)

Source from the content-addressed store, hash-verified

704}
705
706func (stmt *mysqlStmt) ExecContext(ctx context.Context, args []driver.NamedValue) (driver.Result, error) {
707 dargs, err := namedValueToValue(args)
708 if err != nil {
709 return nil, err
710 }
711
712 if err := stmt.mc.watchCancel(ctx); err != nil {
713 return nil, err
714 }
715 defer stmt.mc.finish()
716
717 return stmt.Exec(dargs)
718}
719
720func (mc *mysqlConn) watchCancel(ctx context.Context) error {
721 if mc.watching {

Callers

nothing calls this directly

Calls 4

ExecMethod · 0.95
namedValueToValueFunction · 0.85
watchCancelMethod · 0.80
finishMethod · 0.80

Tested by

no test coverage detected