You are here

function dba_sqlite_report_output in Database Administration 7

SQLite report. @todo: Does SQLite maintain useful statistics?

File

database/sqlite.report.inc, line 75
Provides database driver specific report functions.

Code

function dba_sqlite_report_output($data) {
  $output = array();
  $output[] = '';
  $output[] = t('No SQLite reporting functionality has been implemented yet.');
  $output[] = t('Contributers welcome.');
  $output[] = t('Submit patches to !url.', array(
    '!url' => l(t('the DBA module issue queue'), 'http://drupal.org/project/issues/dba?categories=All'),
  ));
  $output[] = dba_report_section(t('Variables (PRAGMA)'));
  foreach ($data->variables as $key => $value) {
    $output[] = t('  !key!spaces!value', array(
      '!key' => $key,
      '!value' => l($value, 'https://sqlite.org/pragma.html', array(
        'external' => TRUE,
        'fragment' => "pragma_{$key}",
      )),
      '!spaces' => dba_report_spaces(30 - strlen($key)),
    ));
  }
  return $output;
}