Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Raw (0.17 sec)

  1. finisher_api.go

    	}
    	return db
    }
    
    // Exec executes raw sql
    func (db *DB) Exec(sql string, values ...interface{}) (tx *DB) {
    	tx = db.getInstance()
    	tx.Statement.SQL = strings.Builder{}
    
    	if strings.Contains(sql, "@") {
    		clause.NamedExpr{SQL: sql, Vars: values}.Build(tx.Statement)
    	} else {
    		clause.Expr{SQL: sql, Vars: values}.Build(tx.Statement)
    	}
    
    	return tx.callbacks.Raw().Execute(tx)
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Jan 12 08:42:21 GMT 2024
    - 22.7K bytes
    - Viewed (0)
Back to top