public function canUseWriter($query)
    {
        $allowed = !$this->isSelect($query) || $this->writerForced();
        return $this->hasWriter() && $allowed;
    }
public function canUseWriter($query)
    {
        $allowed = !$this->isSelect($query) || $this->writerForced();
        return $this->hasWriter() && $allowed;
    }
public function canUseWriter ( $ query ) { $ allowed = ! $ this -> isSelect ( $ query ) || $ this -> writerForced ( ) ; return $ this -> hasWriter ( ) && $ allowed ; }
Returns true if a query should use the writer mysqli object.

@param $query
@return boolean
Returns true if a query should use the writer mysqli object .