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

Method Debug

gorm.go:368–373  ·  view source on GitHub ↗

Debug start debug mode

()

Source from the content-addressed store, hash-verified

366
367// Debug start debug mode
368func (db *DB) Debug() (tx *DB) {
369 tx = db.getInstance()
370 return tx.Session(&Session{
371 Logger: db.Logger.LogMode(logger.Info),
372 })
373}
374
375// Set store value with key into current db instance's context
376func (db *DB) Set(key string, value interface{}) *DB {

Callers

nothing calls this directly

Calls 3

getInstanceMethod · 0.95
SessionMethod · 0.80
LogModeMethod · 0.65

Tested by

no test coverage detected