RedBeanPHP\Repository::tableExists PHP Method

tableExists() public method

Not part of the Object Database interface!
Deprecation: Use AQueryWriter::typeExists() instead.
public tableExists ( string $table ) : boolean
$table string table name
return boolean
    public function tableExists($table)
    {
        return $this->writer->tableExists($table);
    }

Usage Example

示例#1
0
 /**
  * Checks whether the specified table already exists in the database.
  * Not part of the Object Database interface!
  *
  * @deprecated Use AQueryWriter::typeExists() instead.
  *
  * @param string $table table name
  *
  * @return boolean
  */
 public function tableExists($table)
 {
     return $this->repository->tableExists($table);
 }