コード例 #1
0
    def __init__(self, indent=2, parent=None, memo=None):
        self._table_refs = {}
        self.extracted_subexprs = set()
        self.subquery_memo = {}
        self.indent = indent
        self.parent = parent

        self.always_alias = False

        self.query = None

        self._table_key_memo = {}
        self.memo = memo or format.FormatMemo()
コード例 #2
0
    def __init__(self,
                 compiler,
                 indent=2,
                 parent=None,
                 memo=None,
                 params=None):
        self.compiler = compiler
        self._table_refs = {}
        self.extracted_subexprs = set()
        self.subquery_memo = {}
        self.indent = indent
        self.parent = parent

        self.always_alias = False

        self.query = None

        self._table_key_memo = {}
        self.memo = memo or fmt.FormatMemo()
        self.params = params if params is not None else {}