function drush_performance_db_get_data in Performance Logging and Monitoring 7
Same name and namespace in other branches
- 6 performance.drush.inc \drush_performance_db_get_data()
Drupal version independant variation of performance_db_get_data() for easy maintenance of the drush commands.
2 calls to drush_performance_db_get_data()
- drush_performance_details in ./
performance.drush.inc - drush_performance_summary in ./
performance.drush.inc - Summary page callback. Differs a little from the version in the module because drush_print_table() works differently.
File
- ./
performance.drush.inc, line 306 - Drush integration for the Performance module.
Code
function drush_performance_db_get_data($table, $arguments) {
$data_list = array();
$result = drush_db_select($table, '*', NULL, NULL, 0, $arguments['limit'], $arguments['orderby'], $arguments['direction']);
if (drush_drupal_major_version() >= 7) {
foreach ($result as $row) {
$data_list[] = $row;
}
}
else {
while ($row = db_fetch_object($result)) {
$data_list[] = $row;
}
}
return $data_list;
}