Merge 3ea1d30e62ef4ab2f7b16e5e34c921156cc5b661 into 1b48aa072d1210c2ba315aeea18b57fddb634875

This commit is contained in:
崔士杰 2024-03-29 00:39:06 -05:00 committed by GitHub
commit c800881d59
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -325,6 +325,14 @@ func (db *DB) Debug() (tx *DB) {
})
}
// Silent start silent mode
func (db *DB) Silent() (tx *DB) {
tx = db.getInstance()
return tx.Session(&Session{
Logger: db.Logger.LogMode(logger.Silent),
})
}
// Set store value with key into current db instance's context
func (db *DB) Set(key string, value interface{}) *DB {
tx := db.getInstance()