def all_results(self):
"""Get a list of all entries of the result table. The order is
undefined.
"""
# Only way to ensure old db instances are closed is to force garbage collection
# See dataset note : https://dataset.readthedocs.io/en/latest/api.html#notes
gc.collect()
db = dataset.connect(self.url)
return list(db[self.result_table_name].all())
评论列表
文章目录