Example #1
0
 /**
  * Returns false when there are no tables at all
  *
  * @return bool
  */
 private function hasTables()
 {
     $sql = 'SELECT COUNT(*) FROM sqlite_master';
     $count = (int) DBA::execute($sql)->fetchColumn();
     return $count !== 0;
 }