Flake\Core\Database::query PHP Method

query() public method

* Should be abstract, but we provide a body anyway as PDO abstracts these methods for us
public query ( $sSql )
    function query($sSql)
    {
        if (($stmt = $this->oDb->query($sSql)) === false) {
            $sMessage = print_r($this->oDb->errorInfo(), true);
            throw new \Exception("SQL ERROR in: '" . $sSql . "'; Message: " . $sMessage);
        }
        return new \Flake\Core\Database\Statement($stmt);
    }