system/Database/BaseBuilder.php
public function get(int $limit = null, int $offset = 0, bool $returnSQL = false, bool $reset = true)
	{
		if (! is_null($limit))
		{
			$this->limit($limit, $offset);
		}

		$result = $returnSQL
			? $this->getCompiledSelect()
			: $this->db->query($this->compileSelect(), $this->binds, false);

		if ($reset === true)
		{
			$this->resetSelect();

			// Clear our binds so we don't eat up memory
			$this->binds = [];
		}

		return $result;
	}
public function get(int $limit = null, int $offset = 0, bool $returnSQL = false, bool $reset = true)
	{
		if (! is_null($limit))
		{
			$this->limit($limit, $offset);
		}

		$result = $returnSQL
			? $this->getCompiledSelect()
			: $this->db->query($this->compileSelect(), $this->binds, false);

		if ($reset === true)
		{
			$this->resetSelect();

			// Clear our binds so we don't eat up memory
			$this->binds = [];
		}

		return $result;
	}
Get

Compiles the select statement based on the other functions called
and runs the query

@param integer $limit     The limit clause
@param integer $offset    The offset clause
@param boolean $returnSQL If true, returns the generate SQL, otherwise executes the query.
@param boolean $reset     Are we want to clear query builder values?

@return ResultInterface