def table(self): if isinstance(self.query['table'], basestring): return Table(self.query['table']) if not self.query['table'] and isinstance(self._bindobj, Query): return Table(self._bindobj._alias or token()) return clause(self.query['table'])
def orderclauses(self): if not self.query.get('order_by'): return [] return [clause(w) for w in self.query['order_by']]
def whereclauses(self): if not self.query.get('where'): return [] return [clause(w) for w in self.query['where']]
def groupclauses(self): if not self.query.get('group_by'): return [] return [clause(g) for g in self.query['group_by']]
def columns(self): if not self.query.get('columns'): return [] return [clause(c) for c in self.query['columns']]