(sql string, values ...interface{})
| 459 | } |
| 460 | |
| 461 | func (db *DB) Raw(sql string, values ...interface{}) (tx *DB) { |
| 462 | tx = db.getInstance() |
| 463 | tx.Statement.SQL = strings.Builder{} |
| 464 | |
| 465 | if strings.Contains(sql, "@") { |
| 466 | clause.NamedExpr{SQL: sql, Vars: values}.Build(tx.Statement) |
| 467 | } else { |
| 468 | clause.Expr{SQL: sql, Vars: values}.Build(tx.Statement) |
| 469 | } |
| 470 | return |
| 471 | } |
nothing calls this directly
no test coverage detected