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

Method measureTime

db/sql/sql.go:603–605  ·  view source on GitHub ↗
(timeStarted time.Time, schemaId, action string)

Source from the content-addressed store, hash-verified

601}
602
603func (tx *Transaction) measureTime(timeStarted time.Time, schemaId, action string) {
604 metrics.UpdateTimer(timeStarted, "tx.%s.%s", schemaId, action)
605}
606
607func (tx *Transaction) Exec(sql string, args ...interface{}) error {
608 return tx.ExecContext(context.Background(), sql, args...)

Callers 12

ExecContextMethod · 0.95
CreateContextMethod · 0.95
UpdateContextMethod · 0.95
StateUpdateContextMethod · 0.95
DeleteContextMethod · 0.95
ListContextMethod · 0.95
LockListContextMethod · 0.95
QueryContextMethod · 0.95
CountContextMethod · 0.95
FetchContextMethod · 0.95
LockFetchContextMethod · 0.95
StateFetchContextMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected