Pop\Db\Adapter\Pdo::query PHP Метод

query() публичный Метод

Execute the SQL query and create a result resource, or display the SQL error.
public query ( string $sql ) : void
$sql string
Результат void
    public function query($sql)
    {
        $sth = $this->connection->prepare($sql);
        if (!$sth->execute()) {
            $this->showError($sth->errorCode(), $sth->errorInfo());
        } else {
            $this->result = $sth;
        }
    }