def all(self):
items = list()<EOL>if not self._filters_cmd:<EOL><INDENT>items = self.store.get(self.query_class)<EOL><DEDENT>else:<EOL><INDENT>for item in self.store.get(self.query_class):<EOL><INDENT>tmp_flag = True<EOL>for filter_cmd in self._filters_cmd:<EOL><INDENT>if not filter_cmd[<NUM_LIT:0>](item, filter_cmd[<NUM_LIT:1>], filter_cmd[<NUM_LIT:2>]):<EOL><INDENT>tmp_flag = False<EOL>break<EOL><DEDENT><DEDENT>if tmp_flag:<EOL><INDENT>items.append(item)<EOL><DEDENT><DEDENT><DEDENT>if self._order_by_cmd:<EOL><INDENT>items = self._order_by(items, self._order_by_cmd)<EOL><DEDENT>total_length = len(items)<EOL>if self._limit != <NUM_LIT:0>:<EOL><INDENT>items = items[self._offset: self._offset + self._limit]<EOL><DEDENT>return total_length, items<EOL>
SQLA like 'all' method, will populate all rows and apply all
filters and orders to it.