Example #1
0
 public function hasTable(Table $table)
 {
     $db = $this->quoteName($table->getDatabase());
     $col = $this->quoteName('Tables_in_' . $table->getDatabase());
     $stmt = $this->query("SHOW TABLES IN {$db} WHERE {$col}=?", [$table->getName()]);
     return $stmt->fetchColumn(0) ? true : false;
 }