public function setSql($sql)
    {
        if ('' !== $prefix = $this->db->getPrefix()) {
            $sql = preg_replace('#{{(.*?)}}#', $prefix . '\1', $sql);
        }
        $this->sql = $sql;

        return $this;
    }
public function setSql($sql)
    {
        if ('' !== $prefix = $this->db->getPrefix()) {
            $sql = preg_replace('#{{(.*?)}}#', $prefix . '\1', $sql);
        }
        $this->sql = $sql;

        return $this;
    }
public function setSql ( $ sql ) { if ( '' !== $ prefix = $ this -> db -> getPrefix ( ) ) { $ sql = preg_replace ( '#{{(.*?)}}#' , $ prefix . '\1' , $ sql ) ; } $ this -> sql = $ sql ; return $ this ; }
Set SQL for this command

@param string $sql
@return \Ark\Database\QueryBuilder
Set SQL for this command