public function query(array $where, array $options = []) {
        $options += [
            'order' => $this->getDefaultOrder(),
            'limit' => $this->getDefaultLimit(),
            Db::OPTION_FETCH_MODE => $this->getFetchArgs()
        ];

        $stmt = $this->db->get($this->name, $where, $options);
        return $stmt;
    }
public function query(array $where, array $options = []) {
        $options += [
            'order' => $this->getDefaultOrder(),
            'limit' => $this->getDefaultLimit(),
            Db::OPTION_FETCH_MODE => $this->getFetchArgs()
        ];

        $stmt = $this->db->get($this->name, $where, $options);
        return $stmt;
    }
public function query ( array $ where , array $ options = [ ] ) { $ options += [ 'order' => $ this -> getDefaultOrder ( ) , 'limit' => $ this -> getDefaultLimit ( ) , Db :: OPTION_FETCH_MODE => $ this -> getFetchArgs ( ) ] ; $ stmt = $ this -> db -> get ( $ this -> name , $ where , $ options ) ; return $ stmt ; }
Query the database directly.

@param array $where A where clause to filter the data.
@param array $options Options to pass to the database. See {@link Db::get()}.
@return \PDOStatement Returns a statement from the query.
Query the database directly .