You are here

function dba_sqlite_report_version in Database Administration 7

Return current SQLite version.

File

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

Code

function dba_sqlite_report_version() {
  $result = db_query("SELECT sqlite_version() AS version");
  foreach ($result as $row) {
    $sqlite_version = explode('.', $row->version);
    break;
  }
  $version = new dba_report_version($sqlite_version[0], $sqlite_version[1], $sqlite_version[2]);
  return $version;
}