MCPcopy Create free account
hub / github.com/cloudwan/gohan / ExecContext

Method ExecContext

db/sql/sql.go:612–615  ·  view source on GitHub ↗

Exec executes sql in transaction

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

Source from the content-addressed store, hash-verified

610
611// Exec executes sql in transaction
612func (tx *Transaction) ExecContext(ctx context.Context, sql string, args ...interface{}) error {
613 defer tx.measureTime(time.Now(), "unknown_schema", "exec")
614 return tx.exec(ctx, sql, args...)
615}
616
617func (tx *Transaction) exec(ctx context.Context, sql string, args ...interface{}) error {
618 tx.logQuery(sql, args...)

Callers 1

ExecMethod · 0.95

Calls 2

measureTimeMethod · 0.95
execMethod · 0.95

Tested by

no test coverage detected