Prado\Data\Common\Sqlite\TSqliteMetaData::getIsView PHP Метод

getIsView() защищенный Метод

protected getIsView ( $tableName ) : boolean
Результат boolean true if the table is a view.
    protected function getIsView($tableName)
    {
        $sql = 'SELECT count(*) FROM sqlite_master WHERE type="view" AND name= :table';
        $this->getDbConnection()->setActive(true);
        $command = $this->getDbConnection()->createCommand($sql);
        $command->bindValue(':table', $tableName);
        return intval($command->queryScalar()) === 1;
    }