def fetchall(self):
result = []<EOL>while True:<EOL><INDENT>one = self.fetchone()<EOL>if one is None:<EOL><INDENT>break<EOL><DEDENT>else:<EOL><INDENT>result.append(one)<EOL><DEDENT><DEDENT>return result<EOL>
Fetch all (remaining) rows of a query result, returning them as a sequence of
sequences (e.g. a list of tuples).