'Fetch all (remaining) rows of a query result, returning them as a sequence of sequences
(e.g. a list of tuples).'

def fetchall(self):

    result = []
    while True:
        one = self.fetchone()
        if (one is None):
            break
        else:
            result.append(one)
    return result
