// Run Query and Get time to Run this Query on database
Run Query and Get time to Run this Query on database
// Run Query and Get time to Run this Query on database
func (q *DbQueries) ExecuteDbQueries(query string) (int64, error) {
	start := time.Now()
	err := q.Exec(query).Error
	if err != nil {
		return time.Since(start).Milliseconds(), err
	}
	elapsed := time.Since(start).Milliseconds()
	return elapsed, nil
}
func ( q * DbQueries ) ExecuteDbQueries ( query string ) ( int64 , error ) { start := time . Now ( ) err := q . Exec ( query ) . Error if err != nil { return time . Since ( start ) . Milliseconds ( ) , err } elapsed := time . Since ( start ) . Milliseconds ( ) return elapsed , nil }
Run Query and Get time to Run this Query on database
Run Query and Get time to Run this Query on database