def get_sql(self, debug=False, use_cache=True):
        # TODO: enable caching
        # if self.sql and use_cache and not debug:
        #     return self.sql

        # auto alias any naming collisions
        self.check_name_collisions()

        # if debugging, return the debug formatted sql
        if debug:
            return self.format_sql()

        # build each part of the query
        sql = ''
        sql += self.build_withs()
        sql += self.build_select_fields()
        sql += self.build_from_table()
        sql += self.build_joins()
        sql += self.build_where()
        sql += self.build_groups()
        sql += self.build_order_by()
        sql += self.build_limit()

        # remove any whitespace from the beginning and end of the sql
        self.sql = sql.strip()

        return self.sql
Status of the change set.
dataset/ETHPy150Open ambitioninc/django-query-builder/querybuilder/query.py/Query.get_sql--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/gcloud-python/gcloud/dns/changes.py/Changes.status