MCPcopy
hub / github.com/go-gorm/gorm / Trace

Method Trace

migrator/migrator.go:50–54  ·  view source on GitHub ↗
(ctx context.Context, begin time.Time, fc func() (sql string, rowsAffected int64), err error)

Source from the content-addressed store, hash-verified

48}
49
50func (l *printSQLLogger) Trace(ctx context.Context, begin time.Time, fc func() (sql string, rowsAffected int64), err error) {
51 sql, _ := fc()
52 fmt.Println(sql + ";")
53 l.Interface.Trace(ctx, begin, fc, err)
54}
55
56// GormDataTypeInterface gorm data type interface
57type GormDataTypeInterface interface {

Callers

nothing calls this directly

Calls 1

TraceMethod · 0.65

Tested by

no test coverage detected