public function fetchAll($sql, array $params, array $options = array())
    {
        $result = $this->run($sql, $params)->fetchAll(PDO::FETCH_ASSOC);
        $this->prepareResults($result, $options);
        return empty($result) ? array() : (array) $result;
    }
public function fetchAll($sql, array $params, array $options = array())
    {
        $result = $this->run($sql, $params)->fetchAll(PDO::FETCH_ASSOC);
        $this->prepareResults($result, $options);
        return empty($result) ? array() : (array) $result;
    }
public function fetchAll ( $ sql , array $ params , array $ options = array ( ) ) { $ result = $ this -> run ( $ sql , $ params ) -> fetchAll ( PDO :: FETCH_ASSOC ) ; $ this -> prepareResults ( $ result , $ options ) ; return empty ( $ result ) ? array ( ) : ( array ) $ result ; }
Returns an array of database records
@param string $sql
@param array $params
@param array $options
@return array
Returns an array of database records