public function renderSql()
    {
        $result = vsprintf(
            $this->getBuilder()->getQuery()->toSql(),
            $this->getBuilder()->getQuery()->getBindings()
        );

        // Reset query builder
        $this->resetBuilder();

        return $result;
    }