// InsertDbQueries method for Insert Slowest Query In Db.
InsertDbQueries method for Insert Slowest Query In Db.
// InsertDbQueries method for Insert Slowest Query In Db .
func (q *DbQueries) InsertDbQueries(slowest_query_info *models.Querys) error {
	query := models.Querys{}
	query.Query = slowest_query_info.Query
	query.Time_to_run = slowest_query_info.Time_to_run
	err := q.Save(&query).Error
	if err != nil {
		return errors.ErrorInsertSlowestQuery
	}
	return nil
}
func ( q * DbQueries ) InsertDbQueries ( slowest_query_info * models . Querys ) error { query := models . Querys { } query . Query = slowest_query_info . Query query . Time_to_run = slowest_query_info . Time_to_run err := q . Save ( & query ) . Error if err != nil { return errors . ErrorInsertSlowestQuery } return nil }
InsertDbQueries method for Insert Slowest Query In Db.
InsertDbQueries method for Insert Slowest Query In Db .