protected function compileFinalQuery(string $sql): string
	{
		$query = new Query($this->db);
		$query->setQuery($sql, $this->binds, false);

		if (! empty($this->db->swapPre) && ! empty($this->db->DBPrefix))
		{
			$query->swapPrefix($this->db->DBPrefix, $this->db->swapPre);
		}

		return $query->getQuery();
	}
protected function compileFinalQuery(string $sql): string
	{
		$query = new Query($this->db);
		$query->setQuery($sql, $this->binds, false);

		if (! empty($this->db->swapPre) && ! empty($this->db->DBPrefix))
		{
			$query->swapPrefix($this->db->DBPrefix, $this->db->swapPre);
		}

		return $query->getQuery();
	}
protected function compileFinalQuery ( string $ sql ) : string { $ query = new Query ( $ this -> db ) ; $ query -> setQuery ( $ sql , $ this -> binds , false ) ; if ( ! empty ( $ this -> db -> swapPre ) && ! empty ( $ this -> db -> DBPrefix ) ) { $ query -> swapPrefix ( $ this -> db -> DBPrefix , $ this -> db -> swapPre ) ; } return $ query -> getQuery ( ) ; }
Returns a finalized, compiled query string with the bindings
inserted and prefixes swapped out.

@param string $sql

@return string
Returns a finalized compiled query string with the bindings inserted and prefixes swapped out .