Ensure that the initial values are set

This commit is contained in:
Michael 2020-05-15 17:49:07 +00:00
parent 1efcee030e
commit e333f45d0f
3 changed files with 56 additions and 0 deletions

View file

@ -1660,6 +1660,18 @@ class Database
return (["list" => $statelist, "amount" => $processes]);
}
/**
* Test if the given table exists
*
* @param string $table
* @return bool
*/
public function tableExists(string $table)
{
return $this->exists(['information_schema' => 'tables'],
['table_name' => $table, 'table_schema' => $this->databaseName()]);
}
/**
* Fetch a database variable
*