reset finisher_api.go,remove ExecRaw method

This commit is contained in:
piyongcai 2022-05-16 09:42:14 +08:00
parent 286e4ea884
commit 51abb15f12

View File

@ -696,16 +696,3 @@ func (db *DB) Exec(sql string, values ...interface{}) (tx *DB) {
return tx.callbacks.Raw().Execute(tx) return tx.callbacks.Raw().Execute(tx)
} }
// ExecRaw Do no processing and execute the original sql
func (db *DB) ExecRaw(sql string, values ...interface{}) (tx *DB) {
tx = db.getInstance()
builder := strings.Builder{}
builder.WriteString(sql)
tx.Statement.SQL = builder
tx.Statement.Vars = values
return tx.callbacks.Raw().Execute(tx)
}