function DatabaseSchema_sqlite::tableExists
File
-
includes/
database/ sqlite/ schema.inc, line 21
Class
Code
public function tableExists($table) {
$info = $this->getPrefixInfo($table);
// Don't use {} around sqlite_master table.
return (bool) $this->connection
->query('SELECT 1 FROM ' . $info['schema'] . '.sqlite_master WHERE type = :type AND name = :name', array(
':type' => 'table',
':name' => $info['table'],
))
->fetchField();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.