Ouzo\Db\Dialect\Dialect::select PHP Method

select() public method

public select ( )
    public function select()
    {
        if ($this->_query->type == QueryType::$SELECT) {
            return 'SELECT ' . ($this->_query->distinct ? 'DISTINCT ' : '') . (empty($this->_query->selectColumns) ? '*' : Joiner::on(', ')->map(DialectUtil::_addAliases())->join($this->_query->selectColumns));
        }
        if ($this->_query->type == QueryType::$COUNT) {
            return 'SELECT count(*)';
        }
        return '';
    }