package dao import "github.com/pkg/errors" func (d *Dao) Raw(sql string, args map[string]interface{}, r interface{}) error { e := d.DB.Raw(sql, args).Scan(r).Error return errors.Wrapf(e, "model Raw %s, %v", sql, args) }