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()
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 {}