Pagekit\Database\Query\QueryBuilder::executeQuery PHP Метод

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

Execute the query as select, update or delete.
protected executeQuery ( string $type = 'select' ) : mixed
$type string
Результат mixed
    protected function executeQuery($type = 'select')
    {
        switch ($type) {
            case 'update':
                $sql = $this->getSQLForUpdate();
                break;
            case 'delete':
                $sql = $this->getSQLForDelete();
                break;
            default:
                $sql = $this->getSQLForSelect();
        }
        if ($type == 'select') {
            return $this->connection->executeQuery($sql, $this->params, $this->guessParamTypes($this->params));
        } else {
            return $this->connection->executeUpdate($sql, $this->params, $this->guessParamTypes($this->params));
        }
    }